The breadcrumbs show the item name and not the collection it's in

Topic summary

A user is experiencing two breadcrumb navigation issues on their Shopify Dawn theme store:

Problems identified:

  • Breadcrumbs display the product name instead of the collection name
  • Navigation path varies depending on entry point: products accessed from the landing page don’t show collections, while those accessed through menu tabs (For Her → Selfcare → Product) do display the collection

Solution provided:
A community member (EBOOST) offered code modifications to the breadcrumb.liquid file that successfully resolved the product name display issue. The updated code removes the product name from breadcrumbs and ensures consistent collection display.

Additional issue:
After implementing the fix, unwanted banners appeared on the homepage. EBOOST identified these as richtext elements and provided instructions to remove them through the theme customizer by toggling section visibility using the eye icon.

Status: The main breadcrumb issue appears resolved, with the user confirming the code worked. Screenshots were shared throughout to illustrate both problems and solutions.

Summarized with AI on November 23. AI used: claude-sonnet-4-5-20250929.

Hi @meeko

May I suggest to update code below:


{%- unless template == 'index' or template == 'cart' or template == 'list-collections' or template == '404' -%}
{%- assign t = template | split: '.' | first -%}

{%- endunless -%}