• 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.

    Error Messages

    How can I fix this?

    Thanks in advance ??

Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Author John Havlik

    (@mtekk)

    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.

    Thread Starter soost

    (@soost)

    Hi John,

    The url is: https://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?

    Plugin Author John Havlik

    (@mtekk)

    Yes, it would be helpful to see what is generated when “Link Current Item” is enabled.

    Plugin Author John Havlik

    (@mtekk)

    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="https://schema.org/" typeof="WebPage" in the opening body tag on your page. Then, change the div surrounding the breadcrumb trail to include property="breadcrumb" (e.g. <div class=”breadcrumbs” property=”breadcrumb” vocab=”https://schema.org/&#8221; typeof=”BreadcrumbList”>).

    Thread Starter soost

    (@soost)

    Unfortunately this doesn’t solve the problem, the testing tool now gives other errors (WebPage type).

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

    Output of the Breadcrumbs:
    Breadcrumb output

    Errors (BreadcrumbList disappeared)
    Testing tool errors

    Plugin Author John Havlik

    (@mtekk)

    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.

    Thread Starter soost

    (@soost)

    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 7 years, 5 months ago by soost.
    Plugin Author John Havlik

    (@mtekk)

    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="https://schema.org/" typeof="BreadcrumbList" with itemscope itemtype="https://schema.org/BreadcrumbList" in the div wrapper 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="https://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="https://schema.org/ListItem"><span itemprop="name">%htitle%</span><meta itemprop="position" content="%position%"></span>
    Thread Starter soost

    (@soost)

    Thanks, that solved the problem!

    One more question, how can I get the “name” property beneath the “Thing” type?

    Thread Starter soost

    (@soost)

    Thanks, that solved the problem!

    One more question, how can I get the “name” property’s beneath the “Thing” types?

    Thread Starter soost

    (@soost)

    Hi John,

    Can you help me with a solution for the problem i’ve described above?

    Thanks!

    Plugin Author John Havlik

    (@mtekk)

    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).

    Thread Starter soost

    (@soost)

    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.

    Thread Starter soost

    (@soost)

    Hi John,

    Do you have a solution for the problem above?

    Thanks in advance!

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘NavXT plugin vs. Enfold theme > Testing Tool issues’ is closed to new replies.