2017-02-06 3 views
1

私のウェブサイトの商品ページにはパンくずリストがあります。Schema.orgでProductにbreadcrumbを追加するには?

Productタイプはbreadcrumbではありません。

私はこれでください:

"@type": "Webpage", 
"breadcrumb": {... 
"mainEntity": 
    { 
     "@type": "Product", 
     ... 

は、私は右ですか? (ブレッドクラム用に"@type": "Webpage"を使用しました)

答えて

1

はい、あなたの考えは正しいです。

パンくずリストは製品ではなくWebページの一部であるため、breadcrumb propertyWebPageでのみ定義されています。

Webpageの代わりにWebPageを使用する必要があります。 Schema.orgの用語は大文字と小文字を区別します。

単一の製品のページについては、WebPageではなく、より具体的なItemPageの使用を検討することができます。

0

breadcrumb用のschema.org documentationによると、BreadcrumbListを使用できます。だからこのようなもの:

{ 
    "@context": "http://schema.org", 
    "@type": "WebPage", 
    "breadcrumb": { 
     "@type": "BreadcrumbList", 
     "itemListElement": [{ 
      "@type": "ListItem", 
      "position": 1, 
      "item": { 
       "@id": "https://example.com/dresses", 
       "name": "Dresses" 
      } 
     }, { 
      "@type": "ListItem", 
      "position": 2, 
      "item": { 
       "@id": "https://example.com/dresses/real", 
       "name": "Real Dresses" 
      } 
     }] 
    } 
} 
関連する問題