Clickable tag links

Highlighted
Tourist
27 0 0

Hi,

 

Can anyone tell me how to add tag links in product descriptions?

 

Thanks!

0 Likes
Shopify Partner
450 89 107

@csimacc 

 

You can try this code in your theme product file:

<div id="product-tags">
<span class="tagged">Tagged</span>
{% for tag in product.tags %} +
{% capture url %}/collections/all/{{ tag | handle }}{% endcapture %}
{{ tag | link_to: url }}
{% endfor %}
</div>

Thank you,

Tejas

Shopify Expert | skype: tejas.nadpara
- Feel free to contact me on support@hexaecommerce.com regarding any help
- Like and Mark as an Accepted Solution if reply helpful
0 Likes