Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Breadcrumbs (and multi-level navigation and more)
#4
An alternative solution is this:

Code:
<div class="breadcrumbs">
    <a href="<?php echo find_url('index',null); ?>">Home</a>
    <?php
    if (return_page_slug()=='index')
       echo " ";
    else
     <?php get_i18n_breadcrumbs(return_page_slug()); ?>
    ?>
</div>

Change the 'index' on line 4 to the slug of whatever page is your start page. This negates the need to hide the breadcrumbs with CSS, and ensures that you still have that initial start link on all pages in a uniform format (albeit with the redundant second link being removed on your desired page). Hope that helps!

*edited in response to the below post*

Code:
<div class="breadcrumbs">
    <a href="<?php echo find_url('index',null); ?>">Home</a>
    <?php
    if (return_page_slug()=='index')
       echo " ";
    else
       get_i18n_breadcrumbs(return_page_slug());
    ?>
</div>
Reply


Messages In This Thread
Breadcrumbs (and multi-level navigation and more) - by Angryboy - 2011-03-11, 06:24:54



Users browsing this thread: 1 Guest(s)