Free auditStart free
GuideShopify · Navigation

Shopify breadcrumbs

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 withChatGPTClaudePerplexityGoogleAI Mode
02Check 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.
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>
03Checklist

Match Google's breadcrumb rules

First2
Define a BreadcrumbList that contains at least two ListItems.
Each ListItem needs item (a URL or a Thing), plus name (the displayed title) and position (the order in the trail).
Next2
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.
Then1
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.

04How 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 for where to look.

Questions

Asked a lot.

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

01Does 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.

02Where 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. 01Breadcrumb navigation | Shopify Liquid code examplesshopify.github.io · checked 2026-11-01
  2. 02Breadcrumb structured data | Google Search Centraldevelopers.google.com · checked 2026-11-01
Free · 2 minutes

Tools point. Agencies advise. This one ships.

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

Free, no card60 secondsNobody will call you
  • 46 fixes shipped without a ticket Brightpipe
  • 0→7 ChatGPT citations in six weeks Paylane