Collection in not showing in breadcrumb

Topic summary

A user is experiencing an issue where collection names are not appearing in their store’s breadcrumb navigation. They’ve shared a screenshot demonstrating the problem and included their breadcrumb code snippet.

Code Details:

  • The breadcrumb navigation is implemented using Liquid template code
  • It handles different template types: pages, products, collections, blogs, and articles
  • The code includes logic for displaying collection titles and handling tagged items

Current Status:

  • The issue remains unresolved with no responses yet
  • The code appears to have some formatting irregularities (reversed/garbled text in portions of the snippet)
  • No solutions or troubleshooting suggestions have been provided

The discussion is seeking help to fix the breadcrumb display so collection names appear correctly in the navigation path.

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

{% unless template == ‘index’ or template == ‘cart’ or template == ‘list-collections’ %}

Home {% if template contains 'page' %} {{ page.title }} {% elsif template contains 'product' %} {% if collection.url %} {{ collection.title | link_to: collection.url }} {% endif %} {{ product.title }} {% elsif template contains 'collection' and collection.handle %} {% if current_tags %} {% capture url %}/collections/{{ collection.handle }}{% endcapture %} {{ collection.title | link_to: url }} {{ current_tags | join: " + " }} {% else %} {{ collection.title }} {% endif %} {% elsif template == 'blog' %} {% if current_tags %} {{ blog.title | link_to: blog.url }} {{ current_tags | join: " + " }} {% else %} {{ blog.title }} {% endif %} {% elsif template == 'article' %} {{ blog.title | link_to: blog.url }} {{ article.title }} {% else %} {{ page_title }} {% endif %} {% endunless %}