NavXT plugin vs. Enfold theme > Testing Tool issues
-
Hi,
I’ve installed the NavXT plugin succesfully en implemented it into the Enfold theme. Everything works just fine until I check the option “Link current item” in the general settings of the plugin.
Then I get lots of error messages in the Google Testing Tool. See screenshot below.

How can I fix this?
Thanks in advance 🙂
-
If you have kept the default breadcrumb templates, then this is likely a bug in either Google’s Tool (I’ve seen that in the past), or something else is spewing invalid stuff elsewhere in the document that is throwing Google’s Tool off. It’d help if I could see the actual HTML of the page or at least what Breadcrumb NavXT is generating.
Hi John,
The url is: http://coating.nl/poedercoaten-kosten/
But currently I have switched off the “Link current item” option because of the errors. Do I need to turn this back on?
Yes, it would be helpful to see what is generated when “Link Current Item” is enabled.
After playing around with this for a while, I think I can explain what Google is doing. While it isn’t necessarily the correct interpretation, when the current item is linked, the ID for that breadcrumb is the same as the current page (the URL is the same, so this makes sense). So, Google’s tool throws the other items for that WebPage item under the breadcrumb. However, this will not validate correctly. To fix this, assuming you’re sticking with the RDFa markup type for schema.org, place
vocab="http://schema.org/" typeof="WebPage"in the openingbodytag on your page. Then, change thedivsurrounding the breadcrumb trail to includeproperty="breadcrumb"(e.g. <div class=”breadcrumbs” property=”breadcrumb” vocab=”http://schema.org/” typeof=”BreadcrumbList”>).Unfortunately this doesn’t solve the problem, the testing tool now gives other errors (WebPage type).
Output body:

(The itemtype and itemscope is generated by the theme itself I guess?)Output of the Breadcrumbs:

Errors (BreadcrumbList disappeared)

The problem here is you cannot mix and match RDFa and microformat versions of Schema.org when using
property="breadcrumb"the breadcrumb trail wrapper. If you cannot get the theme (or whatever is generating those ) to stop using the microformat version, you’ll need to update the breadcrumb templates to be in microformat rather than RDFa.to stop using the microformat version, you’ll need to update the breadcrumb templates to be in microformat rather than RDFa.
Ok, how do I do this? Wich microformat options do I use?
Current breadcrumb template is generated bij enfold-functions.php:
if($breadcrumb) { $additions .= '<div class="breadcrumbs breadcrumb" typeof="BreadcrumbList" vocab="https://schema.org/">'; $additions .= bcn_display(true); $additions .= '</div>';-
This reply was modified 8 years, 12 months ago by
soost.
In general you will have to do the following to use the microformat version of BreadcrumbList rather than the RDFa (default for Breadcrumb NavXT):
- Replace
vocab="http://schema.org/" typeof="BreadcrumbList"withitemscope itemtype="http://schema.org/BreadcrumbList"in thedivwrapper for the breadcrumb trial. - In your Breadcrumb NavXT settings, change the following:
- Replace your breadcrumb templates such as:
<span property="itemListElement" typeof="ListItem"><a property="item" typeof="WebPage" title="Go to %title%." href="%link%" class="%type%"><span property="name">%htitle%</span></a><meta property="position" content="%position%"></span>with<span itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"><a itemprop="item" title="Go to %title%." href="%link%" class="%type%"><span itemprop="name">%htitle%</span></a><meta itemprop="position" content="%position%"></span> - Replace your unlinked breadcrumb templates such as:
<span property="itemListElement" typeof="ListItem"><span property="name">%htitle%</span><meta property="position" content="%position%"></span>with<span itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"><span itemprop="name">%htitle%</span><meta itemprop="position" content="%position%"></span>
Thanks, that solved the problem!
One more question, how can I get the “name” property beneath the “Thing” type?

Thanks, that solved the problem!
One more question, how can I get the “name” property’s beneath the “Thing” types?

Hi John,
Can you help me with a solution for the problem i’ve described above?
Thanks!
The changes I suggested should match the Schema.org BreadcrumbList example for the microdata format. I’m thinking this is likely a bug in Google’s interpreter (I’ve read about this in the recent past, but I can’t seem to find the article today).
It works perfectly, but I want to add the ‘name’ property beneath the “item” property. Instead of under the “ItemListElement”. Is this possible?
So the ‘item’ properties are @type, url and name.
Hi John,
Do you have a solution for the problem above?
Thanks in advance!
-
This reply was modified 8 years, 12 months ago by
The topic ‘NavXT plugin vs. Enfold theme > Testing Tool issues’ is closed to new replies.