Why isn't my breadcrumb code working on my online store?

Topic summary

A Shopify store owner is experiencing issues with breadcrumb navigation code where previous category links are not clickable.

Current Problem:

  • The breadcrumb trail displays correctly but users cannot click on intermediate levels (like collection/category names) to navigate back
  • Only the “Home” link appears to be functional

Code Details:

  • The implementation uses Liquid templating for Shopify
  • Breadcrumbs are configured to show on product, collection, page, blog, and article templates
  • The code structure includes proper hierarchy (Home › Collection › Product)

Technical Issue:

  • The latter portion of the posted code appears corrupted or reversed, making it difficult to diagnose the exact problem
  • The user is requesting help to make all breadcrumb levels clickable, not just the final item

The discussion remains open with no solutions provided yet. The corrupted code snippet suggests there may have been a copy-paste error when sharing the code for review.

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

Hello i use this code for my shopify store but it wont let me click on the previous category. Can anyone make it the others clickable?

{% 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 %}

can anyone help me?