Hello everyone, i hope you all doing well
I can’t find a way to add collections tags to product page in Dawn theme, and tags with links to each collection page that product belong.
Like this one in screenshot :
A user sought to add collection tags with links to product pages in the Dawn theme, showing a screenshot example of the desired functionality.
Solutions Provided:
product.collections and displays collection titles as clickable links, avoiding the need for theme file editingResolution:
The original poster confirmed the first solution worked successfully. The discussion is resolved with working implementations provided.
Hello everyone, i hope you all doing well
I can’t find a way to add collections tags to product page in Dawn theme, and tags with links to each collection page that product belong.
Like this one in screenshot :
Hey @ocelot Check out the steps and codes given by Kate here which was accepted as a solution in this thread https://community.shopify.com/c/shopify-design/how-to-add-a-link-to-the-brand-collection-on-product-page-dawn/m-p/1927728
You can easily do it without editing theme code, just by using “Custom Liquid” block or section.
{% if product.collections.size > 0 %}
Collections:
{% for c in product.collections %}
{{ c.title }}
{% unless forloop.last %}, {% endunless %}
{% endfor %}
{% endif %}
Thanks a lot it worked !!
Hi @tim_1
Thanks a lot for you time and for relying, the solution above worked just fine