# Shopify breadcrumbs

> Add breadcrumb navigation to a Shopify theme with Shopify

Canonical: https://scaplet.com/seo/shopify/breadcrumbs

Guide Shopify Shopify · Navigation

Add breadcrumb navigation to a Shopify theme with Shopify's Liquid example, fix the collection-path gap, and match Google's BreadcrumbList rules.

3 min

read

2

sources

Oct 30, 2026

updated

Scaplet Editorial Team

author

In one line

Shopify publishes a Liquid example for breadcrumb navigation that you paste into the theme, branching on the template type. For search, Google's breadcrumb markup needs a BreadcrumbList with at least two ListItems, each with item, name and position. Build the visible trail and the structured data from the same logic so they agree.

30-second check

## Where does your site stand?

Four quick questions, then a straight answer.

1/4Have you checked your own site for this?

Summarize this page with [ChatGPT](https://chatgpt.com/?hints=search&q=Summarize%20https%3A%2F%2Fscaplet.com%2Fseo%2Fshopify%2Fbreadcrumbs%20(%22Shopify%20breadcrumbs%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Claude](https://claude.ai/new?q=Summarize%20https%3A%2F%2Fscaplet.com%2Fseo%2Fshopify%2Fbreadcrumbs%20(%22Shopify%20breadcrumbs%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Perplexity](https://www.perplexity.ai/search?q=Summarize%20https%3A%2F%2Fscaplet.com%2Fseo%2Fshopify%2Fbreadcrumbs%20(%22Shopify%20breadcrumbs%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [![Google](/logos/ai/google-color.svg)AI Mode](https://www.google.com/search?udm=50&q=Summarize%20https%3A%2F%2Fscaplet.com%2Fseo%2Fshopify%2Fbreadcrumbs%20(%22Shopify%20breadcrumbs%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.)

On this page

## 4 parts, 3 minutes.

1. [Two jobs: the visible trail and the markup 01](#two-jobs-the-visible-trail-and-the-markup)
2. [Shopify's Liquid example 02](#shopify-s-liquid-example)
3. [Match Google's breadcrumb rules 03](#match-google-s-breadcrumb-rules)
4. [Check it worked 04](#check-it-worked)

_01_What to check first

## Two jobs: the visible trail and the markup

[Breadcrumbs](/glossary/breadcrumbs) on a Shopify store are two separate things. The first is a navigation element visitors click. The second is `BreadcrumbList` [structured data](/glossary/structured-data) that tells Google the trail. The Shopify pages I fetched for this guide don't say whether your theme outputs either one, so check your own theme before you add code, or you risk duplicates.

Question

### Does the theme already render a visible trail?

How to find out

Open a product page in a browser and look above the title. If it's there, search the theme code for `breadcrumb`

Question

### Does it already output BreadcrumbList data?

How to find out

View source on a product page and search for `BreadcrumbList`, or paste the URL into Google's [Rich Results Test](/glossary/rich-results-test)

Question

### Is the trail only on some templates?

How to find out

Repeat on a collection, a blog article and a regular page

_02_Check it

## Shopify's Liquid example

Shopify's Liquid code examples library has a "Breadcrumb navigation" entry, last updated Feb 21, 2019. It tells you to place the code in `theme.liquid`, just inside the main content wrapper, or wherever you want the breadcrumb to appear. It builds the trail with a `case` on the template name, using `page`, `product`, `collection`, `blog` and `article` branches, plus a fallback using `request.path` and `page_title`. Shopify notes that it intentionally limited the CSS and JavaScript and removed translation strings so the example works with any theme.

**The product trail depends on collection.url**The example only adds a collection crumb when `collection.url` exists. The example page does not say when `collection.url` is set on a product page, so open the same product through a collection and directly, and compare the trails. If the direct one is just Home and the product, decide whether you want a fixed default collection instead.

Core of the product branch, from Shopify's example

```
{%- when 'product' -%} {%- if collection.url -%} <li class="breadcrumbs__item"> {{ collection.title | link_to: collection.url }} </li> {%- endif -%} <li class="breadcrumbs__item"> <a class="breadcrumbs__link" href="{{ product.url }}" aria-current="page">{{ product.title }}</a> </li>
```

_03_Checklist

## Match Google's breadcrumb rules

First_2_
Define a `BreadcrumbList` that contains at least two `ListItems`.

Each `ListItem` needs `item` (a URL or a [Thing](/glossary/entity)), plus `name` (the displayed title) and `position` (the order in the trail).

Next_2_
The last item doesn't need `item`. If it's left out, Google uses the URL of the containing page.

Google says breadcrumbs should reflect a typical user path to a page, not mirror the [URL structure](/glossary/url-structure).

Then_1_
Multiple trails are allowed: if there are multiple ways to navigate to a page, you can specify several for one page.

Shape from Google's documentation (first item shown)

```
{ "@context": "https://schema.org", "@type": "BreadcrumbList", "itemListElement": [{ "@type": "ListItem", "position": 1, "name": "Books", "item": "https://example.com/books" }] }
```

Fill the same fields from the Liquid objects your visible trail already uses, such as `collection.title`, `collection.url`, `product.title` and `product.url`, so the markup can't drift from what shoppers see. Google says this feature is available on desktop in all regions and languages where Google Search is available. Using breadcrumb markup doesn't guarantee a display in results.

_04_How it works

## Check it worked

1. 01

### Test three page types

Run a product page reached through a collection, the same product opened directly, and a blog article through Google's Rich Results Test or view source.
2. 02

### Compare trail and markup

Each `name` and `item` in the markup should match a visible crumb in the same order. Fix any template where only one of the two exists.
3. 03

### Watch Search Console

After Google recrawls, check Google Search Console for problems with the pages you changed. See the [Shopify Search Console guide](/seo/shopify/search-console) for where to look.

Questions

## Asked a lot.

2 questions people ask next, answered from the sources on this page.

_01_ Does Shopify add breadcrumbs by default?

The Shopify docs fetched for this guide don't say. Themes differ, so check your product page and its source for a trail and BreadcrumbList data before adding code.

_02_ Where does Shopify's breadcrumb example go?

Shopify's Liquid example says to place the code in theme.liquid, just inside the main content wrapper, or wherever you want the breadcrumb to appear.

Sources · 2

## Every fact, linked and dated.

Official docs first. The date is when we last opened each page.

- github.io
- google.com

1. 01 [Breadcrumb navigation | Shopify Liquid code examples](https://shopify.github.io/liquid-code-examples/example/breadcrumb-navigation) shopify.github.io · checked 2026-11-01
2. 02 [Breadcrumb structured data | Google Search Central](https://developers.google.com/search/docs/appearance/structured-data/breadcrumb) developers.google.com · checked 2026-11-01

## Keep learning

[All platform guides](/seo)

[Learn Shopify structured data Ecommerce](/seo/shopify/structured-data) [Related Breadcrumbs On-page SEO](/glossary/breadcrumbs) [Read next Shopify SEO Ecommerce](/seo/shopify) [Do Run a free site audit Free, about two minutes](/site-audit)

More in Shopify SEO
[Shopify 404 page](/seo/shopify/404) [Shopify AI crawlers](/seo/shopify/ai-crawlers) [Shopify breadcrumbs](/seo/shopify/breadcrumbs) [Shopify canonical tags](/seo/shopify/canonical-tags) [Shopify favicon](/seo/shopify/favicon) [Shopify Google Analytics](/seo/shopify/google-analytics) [Shopify Google Search Console setup](/seo/shopify/search-console) [Shopify hreflang](/seo/shopify/hreflang) [Shopify image SEO](/seo/shopify/image-seo) [Shopify lazy loading](/seo/shopify/lazy-loading) [Shopify noindex](/seo/shopify/noindex) [Shopify redirects](/seo/shopify/redirects) [Shopify robots.txt](/seo/shopify/robots-txt) [Shopify speed optimization](/seo/shopify/page-speed) [Shopify structured data](/seo/shopify/structured-data) [Shopify titles and meta descriptions](/seo/shopify/title-and-meta) [Shopify XML sitemap](/seo/shopify/xml-sitemap)

Terms on this page
[Breadcrumbs](/glossary/breadcrumbs) [Structured data](/glossary/structured-data) [Rich Results Test](/glossary/rich-results-test) [Entity](/glossary/entity) [URL structure](/glossary/url-structure)

Free · 2 minutes

## Tools point. Agencies advise. _This one ships._

Run the free audit, then approve the fixes. Every change can be undone.

[Audit my site free](/site-audit)

Free, no card 60 seconds Nobody will call you

- **46** fixes shipped without a ticket Brightpipe
- **0→7** ChatGPT citations in six weeks Paylane
