Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
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 }
I'm not sure if you're still looking for a solution, but here is how you accomplish this outside a for loop:
{{ "custom_link_label" | link_to_add_tag: "specific_tag" }}
Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024