Add TreeNav to your theme
Configure TreeNav blocks in your Shopify theme.
Before you start
Make sure you have:
- Created at least one tree in TreeNav
- Copied the Tree ID (dashboard → tree menu → Copy ID)
Adding the tree embed
The tree embed auto-injects navigation into your theme's filter area.
Step 1: Open theme editor
- Go to Online Store → Themes
- Click Edit theme on your active theme
Step 2: Enable the embed
- Click App embeds in the left sidebar
- Toggle on TreeNav Tree
Step 3: Configure settings
- Paste your Tree ID
- Choose Desktop filters location:
- Sidebar – For vertical filter sidebars
- Top bar – For horizontal filter bars
- Drawer – For slide-out drawers
- Custom position – Enter your own CSS selector
- Choose Mobile filters location (same options)
- Adjust other settings as needed
Step 4: Save and test
- Click Save
- Navigate to a collection page in preview
- Verify the tree appears in the correct location
Adding the breadcrumb block
The breadcrumb block shows the path to the current collection.
Step 1: Navigate to template
- In theme editor, click the page selector at top
- Choose Collections → Default collection
Step 2: Add the block
- Click Add section (or Add block in an existing section)
- Select TreeNav Breadcrumb from the Apps tab
Step 3: Configure
- Paste your Tree ID
- Set Home link text (or leave blank to hide)
- Choose Separator style (Slash, Chevron, Arrow, Custom)
- Adjust colors and spacing
Step 4: Position
Drag the section to position it:
- Above the main content for best visibility
- Below the header for seamless integration
Step 5: Save and test
- Save the theme
- Navigate to different collection pages
- Verify the breadcrumb shows the correct path
Adding the drilldown block
The drilldown block shows sibling categories as horizontal pills.
Step 1: Navigate to collection template
- In theme editor, select a collection page template
- Drilldown only works on collection pages
Step 2: Add the block
- Click Add section or Add block
- Select TreeNav Drilldown
Step 3: Configure
- Paste your Tree ID
- Set Back link text (e.g., "← [parent]")
- Set All link text (e.g., "All") or leave blank
- Choose display mode: Slider or Stacked
- Adjust colors to match your theme
Step 4: Position
- Above the product grid for quick category switching
- Below the header for prominent navigation
Step 5: Save and test
- Save the theme
- Test on collection pages at different tree levels
- Verify pills show siblings correctly
Using multiple blocks together
For comprehensive navigation, use all three:
- Tree – In sidebar for full hierarchy browsing
- Breadcrumb – At top for location awareness
- Drilldown – Above products for quick sibling navigation
Each block uses the same Tree ID but serves a different purpose.
Checking your setup
Verify tree embed
- Enable Show debug panel temporarily
- Check that desktop and mobile show ✓
- Disable debug mode before publishing
Verify breadcrumb
- Navigate to a nested collection
- Confirm path shows correctly
- Click breadcrumb links to verify they work
Verify drilldown
- Navigate to a collection with siblings
- Confirm pills appear
- Test the back and all links
Common issues
Block not appearing:
- Verify Tree ID is entered correctly
- Check that the tree is saved/published
- For tree embed, try different layout options
Wrong tree showing:
- Double-check the Tree ID in block settings
- Each block can use a different tree
Styling issues:
- Adjust color settings in block configuration
- Add custom CSS for fine-tuning