Breadcrumbs to the top and bottom
-
This is not a question but I just explain how to set breadcrumbs to the top and bottom of the main content area if someone is interested to do the same.
function printBreadcrublist($value){
if($value==’top’){
echo ‘<div id=”breadcrumblist-top” class=”breadcrumblist breadcrumblist-top”>’;
echo bcn_display();
echo ‘</div>’;
}else{ return ‘<div id=”breadcrumblist-bottom” class=”breadcrumblist breadcrumblist-bottom”>’.bcn_display(true).'</div>’;}
}function change_the_content($content) {
$additional=’…’; // if you want to add something else
return printBreadcrublist(‘top’).$content.$additional.printBreadcrublist(‘bottom’);
}add_filter( ‘the_content’, ‘change_the_content’,10);
I put working example page. The code is not exactly the same as in my site. I put more reasonable id attributes to this example code.
The page I need help with: [log in to see the link]
- The topic ‘Breadcrumbs to the top and bottom’ is closed to new replies.