[Blogger] 修正網站導航標記問題 (data-vocabulary.org 的結構定義已淘汰)

自 2020 年 4 月 6 日起,data-vocabulary.org 標記將不再適用於 Google 搜尋的導覽標記功能。如果想在 2020 年 4 月 6 日之後繼續支援這項功能,則必須將 data-vocabulary.org 標記替換為 schema.org 標記。 ☞ 導覽標記
導航標記所指的就是麵包屑(Breadcrumb),請將 data-vocabulary 的麵包屑結構
  1. <div itemscope itemtype="http://data-vocabulary.org/Breadcrumb">
  2. <a itemprop="item" href="https://example.com/dresses" itemprop="url">
  3. <span itemprop="title">Dresses</span>
  4. </a>
  5. </div>
  6. <div itemscope itemtype="http://data-vocabulary.org/Breadcrumb">
  7. <a itemprop="item" href="https://example.com/dresses/real" itemprop="url">
  8. <span itemprop="title">Real Dresses</span>
  9. </a>
  10. </div>

換置成 schema.org 的麵包屑結構 ☞ schema.org
  1. <ol itemscope itemtype="http://schema.org/BreadcrumbList">
  2. <li itemprop="itemListElement" itemscope
  3. itemtype="http://schema.org/ListItem">
  4. <a itemprop="item" href="https://example.com/dresses">
  5. <span itemprop="name">Dresses</span></a>
  6. <meta itemprop="position" content="1" />
  7. </li>
  8. <li itemprop="itemListElement" itemscope
  9. itemtype="http://schema.org/ListItem">
  10. <a itemprop="item" href="https://example.com/dresses/real">
  11. <span itemprop="name">Real Dresses</span></a>
  12. <meta itemprop="position" content="2" />
  13. </li>
  14. </ol>

最後,請使用 Google 結構化資料測試工具 檢測網頁。

Source

Google To Drop Data-Vocabulary On April 6th, All In On Schema.org
How To Fix “data-vocabulary.org schema deprecated” Error
[教學] 修正 網站導航標記 問題 (data-vocabulary.org schema deprecated)

沒有留言:

技術提供:Blogger.