Link to tags on product pages

vuela
New Member
4 0 0

I would like to add a simple in-line row of links to the tags on a product page. On my product page I have the tags listed for that product, but I am having trouble getting the tags to link to a results page showing all products that have that same tag.

Here is the page I'm working with: http://blackroosterdecor.myshopify.com/products/the-devon-chair-reincarnated

I want the tags to be clickable to show other items that also have that tag (independant of any collection if possible).

Also, on my collection pages I have the tags setup how I like them - nice!

Any help is appreciated!!

0 Likes
Caroline_Schnap
Shopify Staff
Shopify Staff
5705 1 352

I want the tags to be clickable to show other items that also have that tag (independant of any collection if possible).

I fixed your product.liquid code by adding a line code and editing the URL... using this now:

<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>

I am sorry for the intrusion!

Caroline @ Shopify

 

vuela
New Member
4 0 0

Thanks!

However, I like this better - so that it links to a results page that shows all products with that tag (answer from this post: http://forums.shopify.com/categories/2/posts/12608).

0 Likes
Caroline_Schnap
Shopify Staff
Shopify Staff
5705 1 352

It's the same answer :-)

Bustedbones
New Member
3 0 0

So, if a guy adds this code, as you have it now into liquid a guy can make clickable links to all products tagged with a specific tag?

0 Likes