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
- Go to Online Store → Themes → Edit theme
- Navigate to a collection or product page template
- Click Add section or Add block
- Select Breadcrumb
- Enter your Tree ID (find it in the TreeNav app dashboard)
- Configure settings and save
Content settings
| Setting | Description | Default |
|---|---|---|
| Tree ID | The ID of your navigation tree. Find this in the TreeNav app dashboard. | — |
| Home link text | Text for the first breadcrumb item. Leave blank to hide the home link. | "Home" |
| Separator style | Character between breadcrumb items: Slash (/), Chevron (›), Arrow (→), or Custom | Chevron (›) |
| Custom separator | Your own separator character (max 3 characters). Only visible when Separator style is "Custom". | "/" |
Context settings
| Setting | Description | Default |
|---|---|---|
| Truncate long paths | Show ellipsis (…) for deep hierarchies instead of all levels | Off |
| Levels to show | Number 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
| Setting | Range | Default | Description |
|---|---|---|---|
| Width | — | Full width |
|
| Max width | 1000-2000px | 1200px | Maximum width when using Custom width. Only visible when Width is "Custom". |
| Side padding | 0-64px | 16px | Left and right padding |
| Top padding | 0-48px | 8px | Padding above the breadcrumb |
| Bottom padding | 0-48px | 8px | Padding below the breadcrumb |
| Item spacing | 4-24px | 8px | Gap between breadcrumb items (including separator) |
Typography settings
| Setting | Range | Default | Description |
|---|---|---|---|
| Font size | 10-18px | 13px | Text size for breadcrumb items |
Color settings
| Setting | Default | Description |
|---|---|---|
| Background color | transparent | Block background color |
| Link color | #303030 | Color for clickable breadcrumb links |
| Link hover color | #000000 | Link color on mouse hover |
| Current item color | #707070 | Color for the current page (last item, not clickable) |
| Separator color | #707070 | Color 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 Type | Breadcrumb |
|---|---|
| Blog | Home › Blog Title |
| Article | Home › Blog Title › Article Title |
| Page | Home › Page Title |
| Search | Home › Search |
| Cart | Home › Cart |
| Collections list | Home › Collections |
| Account pages | Home › 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 readersaria-current="page"on the current/last item- Semantic
<ol>list structure - Schema.org microdata with
itempropattributes - Truncation ellipsis has
aria-labelfor hidden levels
Troubleshooting
- Check that the current collection exists in your tree
- Verify Tree ID is correct in block settings
- Ensure the tree is published (saved in TreeNav app)
- 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:
| Class | Element |
|---|---|
.treenav-breadcrumb | Main nav container |
.treenav-breadcrumb__list | Ordered list element |
.treenav-breadcrumb__item | List item (li) |
.treenav-breadcrumb__link | Clickable link |
.treenav-breadcrumb__current | Current page (last item) |
.treenav-breadcrumb__ellipsis | Truncation 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.