Support » Plugin: Breadcrumb NavXT » How I can add “You Are Here” Text?

  • Resolved Dani Par

    (@dani-par)


    Hi,

    Great plugin!

    I would like to put the text “You are here” before the home page link, in this way:

    You are here: MyWebSite>Page

    how can I do it?
    Can you explain me please?

    Thanks!

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author John Havlik

    (@mtekk)

    The answer depends on how you are calling the breadcrumb trail. If you are calling bcn_display(), just add the string before the call to bcn_display() in your theme.

    If you are using the included widget, you can place the text “You are here:” in the “Text to show before the trail:” field.

    Thread Starter Dani Par

    (@dani-par)

    Hi John,

    Thanks for your quick response.

    Yes, I call the bcn_display().

    Should I put it this way?:

    <div class=”breadcrumbs” typeof=”BreadcrumbList” vocab=”http://schema.org/”&gt;
    <?php if(function_exists(‘bcn_display’))
    {
    You are here: bcn_display();
    }?>
    </div>

    Confirm me please…
    Thanks!
    Dani

    Plugin Author John Havlik

    (@mtekk)

    If you are going to place the “You are here” string within open php tags, you will want to use echo, or similar screen printing function in php. For example, the following should work:

    <div class=”breadcrumbs” typeof=”BreadcrumbList” vocab=”http://schema.org/”>
    <?php if(function_exists(‘bcn_display’))
    {
    echo 'You are here: ';
    bcn_display();
    }?>
    </div>
    • This reply was modified 6 years, 2 months ago by John Havlik.
    Thread Starter Dani Par

    (@dani-par)

    Ok, works perfect!
    thank you very much
    Dani

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How I can add “You Are Here” Text?’ is closed to new replies.