ThemeShaper Forums » Thematic

[closed]

Breadcrumb NavXT code in function.php

(4 posts)
  • Started 4 years ago by Baudesign
  • Latest reply from Chris
  • This topic is resolved
  1. Baudesign
    Member

    Hi all,

    I would like to implement this code:

    <div class="breadcrumb">
    <?php
    if(function_exists('bcn_display'))
    {
    	bcn_display();
    }
    ?>
    </div>

    ...in my function.php file to implement the Breadcrumbs NavXT. Ideally, the output would show up just above #nav-above <div>

    ref.: http://mtekk.weblogs.us/code/breadcrumb-navxt/#basic

    Easy?

    Thanks for the help.

    Pat

    Posted 4 years ago #
  2. Hi Pat,

    create an action like this

    function hansel_and_grethel() { ?>
        <div class="breadcrumb">
            <?php if(function_exists('bcn_display')) {
    	    bcn_display();
            } ?>
        </div>
    <?php
    }
    add_action ('thematic_navigation_above', 'hansel_and_grethel', 1);

    Haven't tested this one.

    Or your could use Yoast Breadcrumbs. It comes with automated Thematic integration ;)

    Chris

    Posted 4 years ago #
  3. Baudesign
    Member

    Hansel and Grethel!? LOL, now this is funny. Can I put le_petit_poucet instead? ;-)

    Thanks, it works fine, and btw, I do not use Yoast Breadcrumbs because it behaves quite strangely with accented characters we use in French: é, à, ë, ê et al.

    Pat

    Posted 4 years ago #
  4. Hi Pat,

    :)

    thanks for that info 'bout Joost's plugin. Will see if I can find a solution for this.

    Chris

    Posted 4 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.