Shopify Breadcrumbs Generator
A breadcrumb trail for product, collection and page templates, with BreadcrumbList markup.
One snippet, several template types
The trail changes based on which template it's rendered on: Home > Collection > Product on a product page, Home > Collection on a collection page, Home > Blog > Article on a blog post, and Home > Page title everywhere else.
On a product page reached directly (not through a collection listing), there's no collection object in context, so it falls back to the product's first collection, or skips that step if the product isn't in any collection.
Turn on structured data to also output matching BreadcrumbList markup (as inline itemprop attributes, which Google reads the same as a separate JSON-LD block), which makes the page eligible, not guaranteed, for a breadcrumb trail shown under your result in Google Search.
Adding it to your templates
- 01
Add the snippet
Online Store → Themes → Edit code → Snippets → Add a new snippet named
breadcrumbs, paste the code, then add{% render 'breadcrumbs' %}near the top of your product, collection, page, blog and article templates.
Questions people ask
Will Google definitely show my breadcrumbs in search results?
Structured data makes a page eligible, it doesn't guarantee Google displays it. Treat it as a bonus, not something to rely on.
My theme already shows breadcrumbs. Should I still use this?
No, adding a second trail (or a second BreadcrumbList) on the same page is confusing for shoppers and can confuse structured data. Check your theme's product and collection templates for an existing breadcrumb snippet first.
Does it handle the home page itself?
The home page doesn't need a trail (it has nothing above it), so this snippet is meant for inner pages only.
Can I change the separator character?
Yes, enter anything short, like /, › or →, in the separator field.
Related tools
Last reviewed 30 September 2026.
Sources: Schema.org: BreadcrumbList
