How to use a specific tags' link

medlingtonQPS
Excursionist
16 0 3

Hi,

Im trying to recreate the filter by tag functionality thats been removed in the new V2.0 SHopify.

Can anyone tell me how Id select a specific tag in liquid and use its link?

e.g. within a loop to go through all the tags:

{% for tag in collection.tags %}

I can use this liquid code to echo the link to filter by that tag:

{ tag | link_to_add_tag: tag }}

Now say I wasnt in a loop and I want to echo the link for a specific tag, how would I do that? Something like this:

{ tag='specific_tag' | link_to_add_tag: tag }

 

Replies 0 (0)