我在我的下面搜索引擎友好的導航工作:使用SiteNavigationElement和BreadcrumbList一起
<nav itemprop="breadcrumb" itemscope itemtype="https://schema.org/BreadcrumbList">
<ul id="hornavmenu" class="nav navbar-nav">
<li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem" >
<a href="index.html" class="fa-home active" itemprop="item"><span itemprop="name">Start</span></a>
</li>
<li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem" >
<a href="about.html" class="fa-group " itemprop="item"><span itemprop="name">About</span></a>
</li>
<li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem" >
<a href="contact.html" class="fa-comment " itemprop="item"><span itemprop="name">Contact</span></a>
</li>
</ul>
</nav>
所以問題是,在谷歌搜索Breadcrumblist看起來是這樣的:
URL - >開始 - >關於 - >聯繫
當然,這是錯的,但什麼是錯誤的代碼?另外,我想補充:
<nav itemscope="itemscope" itemtype="http://www.schema.org/SiteNavigationElement">
…
</nav>
...但我在哪裏添加BreadcrumbList,如何合併這兩個?
對於不是麪包屑列表的東西,您正在使用'BreadcrumbList',並想知道Google爲何將其顯示爲麪包屑列表? - 爲什麼你使用'BreadcrumbList'? – unor
是的,我想。所以我希望用SiteNavigationElement改變BreadcrumbList – kellerprogger