Solved

How can I display product tags on each page using the Dawn theme?

Terrapin
Tourist
9 0 1

hi

I would like to make my product tags display in each product page, so the user can click each tag, and get a filtered result of all products with this tag. Can it be done?

I am using the Dawn theme. 


Thank You

Accepted Solution (1)
AvadaCommerce
Shopify Partner
3879 839 964

This is an accepted solution.

Hi @Terrapin ,

 

You can add below {% endfor %} at line position: 364

AvadaCommerce_0-1642554707828.png

 

AvadaCommerce_1-1642554814430.png

Hope can help you. ^^

 

 

banned

View solution in original post

Replies 5 (5)

AvadaCommerce
Shopify Partner
3879 839 964

Hi @Terrapin ,

 

To change you follow the instruction:

1. Go to Online Store->Theme->Edit code
2. Section->/main-product.liquid->paste the code below where you want it:

<div class="product_tags">
               {% for tag in product.tags %}
                 <a class="link" href="/collections/all/{{ tag | handle }}" rel="tag" style="text-decoration: none">
                   <span>{{ tag }}</span>
                   {% unless forloop.last %}
                   <span class="separator">/</span>
                   {% endunless %}
                 </a>
               {% endfor %}
</div>

I hope it would help you.

banned
Terrapin
Tourist
9 0 1

hi @AvadaCommerce  

when you wrote "paste the code where you want it", does it matter where I paste the code?

because I see the are 830 lines of existing code already there, so I'm not sure where to paste it... 


Thank You

AvadaCommerce
Shopify Partner
3879 839 964

This is an accepted solution.

Hi @Terrapin ,

 

You can add below {% endfor %} at line position: 364

AvadaCommerce_0-1642554707828.png

 

AvadaCommerce_1-1642554814430.png

Hope can help you. ^^

 

 

banned
Terrapin
Tourist
9 0 1

hi @AvadaCommerce 

Thank You very much 🙂

it works perfectly!

bitolga
Excursionist
21 2 2

I've been looking for the answer to this too, but I couldn't find it. can anyone help? Please

I want it to convert tags as meta tags but it doesn't work