Breadcrumb

Navigation path with SEO-friendly Schema.org markup.

Overview

The Breadcrumb block displays the path through your tree to the current page. Each item except the last is a clickable link. Includes Schema.org BreadcrumbList microdata for SEO.

Type: App Block (add to any section)

Example: Home › Men's › Shirts › Casual

Adding the block

  1. Go to Online StoreThemesEdit theme
  2. Navigate to a collection or product page template
  3. Click Add section or Add block
  4. Select Breadcrumb
  5. Enter your Tree ID (find it in the TreeNav app dashboard)
  6. Configure settings and save

Content settings

SettingDescriptionDefault
Tree IDThe ID of your navigation tree. Find this in the TreeNav app dashboard.
Home link textText for the first breadcrumb item. Leave blank to hide the home link."Home"
Separator styleCharacter between breadcrumb items: Slash (/), Chevron (›), Arrow (→), or CustomChevron (›)
Custom separatorYour own separator character (max 3 characters). Only visible when Separator style is "Custom"."/"

Context settings

SettingDescriptionDefault
Truncate long pathsShow ellipsis (…) for deep hierarchies instead of all levelsOff
Levels to showNumber of trailing levels to display when truncating (1-5). Only visible when truncation is enabled.3

Truncation example

With a 6-level path and "Levels to show" set to 3:

  • Full path: Home › Electronics › Computers › Laptops › Gaming › ASUS
  • Truncated: Home › Electronics › … › Gaming › ASUS

The first item (after Home) is always shown, followed by ellipsis, then the last N levels.


Layout settings

SettingRangeDefaultDescription
WidthFull width
  • Full width – Fills container width
  • Fullscreen – Breaks out to viewport width (100vw)
  • Custom – Set a max width with auto centering
Max width1000-2000px1200pxMaximum width when using Custom width. Only visible when Width is "Custom".
Side padding0-64px16pxLeft and right padding
Top padding0-48px8pxPadding above the breadcrumb
Bottom padding0-48px8pxPadding below the breadcrumb
Item spacing4-24px8pxGap between breadcrumb items (including separator)

Typography settings

SettingRangeDefaultDescription
Font size10-18px13pxText size for breadcrumb items

Color settings

SettingDefaultDescription
Background colortransparentBlock background color
Link color#303030Color for clickable breadcrumb links
Link hover color#000000Link color on mouse hover
Current item color#707070Color for the current page (last item, not clickable)
Separator color#707070Color for separator characters

How path detection works

Collection pages

Shows the full path through your tree to the current collection. If the collection exists in multiple places in your tree, the first occurrence is used.

Product pages

TreeNav finds the deepest matching collection from the product's collections that exists in your tree. This ensures the most specific breadcrumb path.

Example: A product in both "Men's" (depth 1) and "Men's › Shirts › Casual" (depth 3) will show the deeper path.

Other page types

The breadcrumb automatically adapts to different page types:

Page TypeBreadcrumb
BlogHome › Blog Title
ArticleHome › Blog Title › Article Title
PageHome › Page Title
SearchHome › Search
CartHome › Cart
Collections listHome › Collections
Account pagesHome › Account

Collection not in tree

If a collection page's collection isn't found in your tree, the breadcrumb shows just the collection title (no tree path):

Home › Collection Title


SEO benefits

The block automatically includes Schema.org BreadcrumbList structured data:

{
  "@type": "BreadcrumbList",
  "itemListElement": [
    { "position": 1, "name": "Home", "item": "https://..." },
    { "position": 2, "name": "Men's", "item": "https://..." },
    { "position": 3, "name": "Shirts" }
  ]
}

Benefits

  • Rich snippets – Search engines may display breadcrumbs in search results
  • Site structure – Helps search engines understand your category hierarchy
  • Click-through rate – Breadcrumbs in search results can improve CTR

Validation

Test your breadcrumbs with Google's Rich Results Test or view page source to inspect the JSON-LD script.


Accessibility

  • <nav aria-label="Breadcrumb"> landmark for screen readers
  • aria-current="page" on the current/last item
  • Semantic <ol> list structure
  • Schema.org microdata with itemprop attributes
  • Truncation ellipsis has aria-label for hidden levels

Troubleshooting

  1. Check that the current collection exists in your tree
  2. Verify Tree ID is correct in block settings
  3. Ensure the tree is published (saved in TreeNav app)
  4. Confirm you're on a supported page type
  • The collection might appear multiple times in your tree – TreeNav uses the first occurrence
  • Reorganize your tree structure if needed
  • For products, check which collections are assigned and their depth in the tree
  • View page source and search for "BreadcrumbList" to verify markup
  • Use Google's Rich Results Test to validate structured data
  • Note: Google may take time to recrawl and display rich results
  • Rich snippets are not guaranteed – Google decides when to show them
  • Ensure "Truncate long paths" is enabled
  • Path must be deeper than "Levels to show" setting
  • Home link doesn't count toward the level limit

CSS customization

Override default styles using these CSS classes:

ClassElement
.treenav-breadcrumbMain nav container
.treenav-breadcrumb__listOrdered list element
.treenav-breadcrumb__itemList item (li)
.treenav-breadcrumb__linkClickable link
.treenav-breadcrumb__currentCurrent page (last item)
.treenav-breadcrumb__ellipsisTruncation ellipsis

CSS custom properties

Override these variables in your theme CSS:

.treenav-breadcrumb {
  --bc-separator: '›';
  --bc-gap: 8px;
  --bc-text: #303030;
  --bc-text-hover: #000000;
  --bc-current: #707070;
  --bc-separator-color: #707070;
}

More questions? See the FAQ & Troubleshooting guide or contact us.