Maral
Maral

Reputation: 99

How to add breadcrumb to Product in Schema.org?

The product page of my website has a breadcrumb.

The Product type has not breadcrumb.

I do this:

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

Am I right? (I used "@type": "Webpage" only for breadcrumb)

Upvotes: 3

Views: 1957

Answers (2)

unor
unor

Reputation: 96697

Yes, your idea is correct.

As breadcrumbs are part of web pages, not of products, the breadcrumb property is only defined for WebPage.

Note that you must use WebPage instead of Webpage. Schema.org terms are case-sensitive.

For a page with a single product, you can consider using (the more specific) ItemPage instead of WebPage.

Upvotes: 3

hatef
hatef

Reputation: 6219

According to schema.org documentation for breadcrumb you can use BreadcrumbList. So something like this:

{
    "@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"
            }
        }]
    }
}

Upvotes: 1

Related Questions