Skip to main content

How do I set the primary collection for breadcrumbs JSON-LD?

Choose which collection a product shows in its breadcrumbs JSON-LD.

Written by Julia

Without a primary collection, product breadcrumbs show Home > Product. A collection is only added when the product URL contains /collections/ or when the "Add fallback collection to breadcrumbs" setting is on in the Breadcrumb JSON-LD app embed, and then it's the product's first collection. Set a primary collection to always show the collection you choose: Home > Collection > Product.

Go to your Shopify admin → Settings → Metafields and metaobjects and under Products section set the primary collection accordingly.

When creating a new metafield, set the Name to "primary_collection" and choose Collection as the metafield type.

Next, open any product in your Shopify admin and choose the Collection you would like to show for the selected product in breadcrumbs JSON-LD.

Click "Save" and that’s it - our app will handle the rest!

Did this answer your question?