Breadcrumb in Header (header.php) – sort of works….
-
I’m using 2014 theme, and I want the breadcrumbs in the header. I’ve place the chunk of breadcrumb code in header.php. This causes a horizontal bar to appear in the header area, but no text appears.
I have tried clicking in the bar to see if there was invisible text, but apparently not.
Oddly, on a site hosted at GoDaddy, it seems to work with the 2015 theme, but on my locally-hosted WP instance, it isn’t working. So it is possible there is some random bit of something I haven’t installed.
My site is MOSTLY static pages, so breadcrumbs is supposed to be tracking those, not blog posts.
The Breadcrumb settings are pretty close to stock. I link the current item, and my home template is: <span typeof=”v:Breadcrumb”>Home</span>
I cannot give you a link to my internal site; sorry. The site where it _is_ working is but I cannot figure out what’s different between the two sites, other than the theme. And I need the 2014 theme, not the 2015 theme.
Any suggestions?
This code is what I put in header.php, right after the first <head></head> block:
<div class=”breadcrumbs” xmlns:v=”https://rdf.data-vocabulary.org/#”>
<?php if(function_exists(‘bcn_display’))
{
bcn_display();
}?>
</div>
- The topic ‘Breadcrumb in Header (header.php) – sort of works….’ is closed to new replies.