【问题标题】:Display of last Schema.org breadcrumb entry in Google Search?在 Google 搜索中显示最后一个 Schema.org 面包屑条目?
【发布时间】:2016-07-07 07:39:23
【问题描述】:

我正在尝试根据 Schema.org 标记我的面包屑,以便在 Google 结果中获取面包屑,如下所示:

首页 > 分类 > 当前页面

但我目前的标记只显示:

首页 > 分类

我的标记 (example page) 中是否缺少某些内容?我正在为 WordPress 使用 Navxt 插件。

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

您可以在 Google 搜索中搜索我的面包屑导航:site:omdömen.se inurl:consector

【问题讨论】:

    标签: html google-search schema.org breadcrumbs


    【解决方案1】:

    Google 的文档说 about breadcrumbs:

    面包屑路径可以包含或省略其所在页面的面包屑。

    文档不包含他们的搜索结果功能的屏幕截图,但我猜测 Google 搜索在两种情况下都以相同的方式显示它:没有当前页面的条目。

    在搜索结果 sn-p 的面包屑路径中显示当前页面的链接没有多大意义,因为主链接(即搜索结果本身)已经链接到它。

    【讨论】:

    • “显示当前页面的链接没有多大意义”,除了面包屑不呈现为链接而是呈现为文本,因此看起来结果页面是其父页面。 ://
    【解决方案2】:

    根据the comments in this question's answers,显然如果您没有在最后一个项目(当前页面)上放置itemid,它现在将被显示。 :)

    Similarly,您可以删除第一项(主页)的 itemid 或 url 以防止出现“www.example.com > Home > My page”等冗余显示。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-11-07
      • 1970-01-01
      • 2017-06-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多