Display of last Schema.org breadcrumb entry in Google Search?

白昼怎懂夜的黑 提交于 2019-12-01 07:01:32

问题


I'm trying to markup my breadcrumbs according to Schema.org in order to get breadcrumbs in the Google results like this:

Home > Category > Current page

But with my current markup it only shows:

Home > Category

Is something missing in my markup (example page)? I'm using Navxt plugin for WordPress.

<div class="breadcrumbs" typeof="BreadcrumbList" vocab="http://schema.org/">
    <!-- Breadcrumb NavXT 5.4.0 -->
<span property="itemListElement" typeof="ListItem"><a property="item" typeof="WebPage" title="Go to Omdömen.se." href="http://www.xn--omdmen-yxa.se" class="home"><span property="name">Hem</span></a><meta property="position" content="1"></span> &raquo; <span property="itemListElement" typeof="ListItem"><a property="item" typeof="WebPage" title="Go to Företag." href="http://www.xn--omdmen-yxa.se/foretag/" class="post post-page"><span property="name">Företag</span></a><meta property="position" content="2"></span> &raquo; <span property="itemListElement" typeof="ListItem"><a property="item" typeof="WebPage" title="Go to Consector." href="http://www.xn--omdmen-yxa.se/foretag/consector/" class="post post-page current-item"><span property="name">Consector</span></a><meta property="position" content="3"></span></div>

You can google this to see my breadcrumb in Google Search: site:omdömen.se inurl:consector


回答1:


Google’s documentation says about breadcrumbs:

The breadcrumb trail may include or omit a breadcrumb for the page on which it appears.

The documentation doesn’t contain a screenshot of their search result feature, but my guess is that Google Search displays it the same way in both cases: without an entry for the current page.

It wouldn’t make much sense to show the link for the current page in the search result snippet’s breadcrumb trail, because the primary link (i.e., the search result itself), well, already links to it.




回答2:


According to the comments in this question's answers, apparently if you don't put an itemid onyour last item (current page), it will now be displayed. :)

Similarly, you could remove the first item's (home page's) itemid or url to prevent a redundant display like "www.example.com > Home > My page".



来源:https://stackoverflow.com/questions/36120148/display-of-last-schema-org-breadcrumb-entry-in-google-search

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!