Hi All,
I’m building my Shopify store using the Dawn theme & I can’t seem to get the product path to show on the product page so that customers can easily navigate back to the collection. I have followed advice from other posts but can’t seem to get it working on my store. I have added the breadcrumbs snippet, but not sure how to get this snippet into to my theme.
Any help would be appreciated!
Code so far - breadcrumbs.liquid
{% unless template == ‘index’ or template == ‘cart’ or template == ‘list-collections’ %}
{% 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 %}