Hey John,
I was updating this for a second site. Can you join me in taking a look.
– i’ve corrected the navxt backend settings to go with the new markup (per your defaults)
– i’ve updated the templates:
Old:
<div class="breadcrumbs">
<?php if(function_exists('bcn_display')) { bcn_display(); }?>
</div>
New:
<div class="breadcrumbs" typeof="BreadcrumbList" vocab="https://schema.org/">
<?php if(function_exists('bcn_display')) { bcn_display(); }?>
</div>
My portfolio’s had a custom line added (single.php):
complete old:
<span typeof="v:Breadcrumb"><a rel="v:url" property="v:title" title="Go to ." href="<?php echo home_url();?>" class="home">Home</a></span><span class="divider">/</span><span typeof="v:Breadcrumb"><a rel="v:url" property="v:title" title="Go to the Projecten category archives." href="<?php echo home_url('/portfolio/');?>" class="taxonomy category">Projecten</a></span><span class="divider">/</span><span><span><?php the_title();?></span></span>
complete new:
<span property="itemListElement" typeof="ListItem"><a property="item" typeof="WebPage" title="Naar de startpagina." href="<?php echo home_url();?>" class="home"><span property="name">Home</span></a><meta property="position" content="%position%"><span class="divider">/</span><span property="itemListElement" typeof="ListItem"><a property="item" typeof="WebPage" title="Naar het Projecten overzicht." href="<?php echo home_url('/portfolio/');?>" class="taxonomy category"><span property="name">Projecten</span></a><meta property="position" content="%position%"><span class="divider">/</span><span><span><?php the_title();?></span></span>
But right now im a bit confused on why there errors persist (this is a project / default post-type):
https://search.google.com/structured-data/testing-tool/u/0/?hl=nl#url=https%3A%2F%2Fwww.procarwrap.nl%2Fmercedes-g63-brabus-bodykit-and-full-body-wrap%2F
URL; https://www.procarwrap.nl/mercedes-g63-brabus-bodykit-and-full-body-wrap/
This is a service page (page.php) using the default bcn code:
https://search.google.com/structured-data/testing-tool/?hl=nl#url=%20https%3A%2F%2Fwww.procarwrap.nl%2Fons-aanbod-procarwrap%2Fruiten-blinderen%2F
URL; https://www.procarwrap.nl/ons-aanbod-procarwrap/ruiten-blinderen/
So would be nice if you could pinpoint the following:
– Why <span property=”name”></span> comes up empty?
– Why is says “Google does not recognize the itemListElement property for a ListItem type object.” on the post-type template:
https://www.procarwrap.nl/mercedes-g63-brabus-bodykit-and-full-body-wrap/
Thanks!