Shopify themes, liquid, logos, and UX
Hello
I have created some tags for my products while i added them to the store, how can i display these so on the productpage without messing things up?
Thanks in advance. 🙂
My store:
Solved! Go to the solution
This is an accepted solution.
Hi @Dekanten
Thank you for reaching out to the Shopify community.
For adding product tags in product page just go to your theme code editor, and search for file named main-product.liquid in Sections folder. Add the below code just above the price div.
<div class="product-tags">
{% for tag in product.tags %}
<span class="tag">{{ tag }}</span>
{% endfor %}
</div>
Screen shot for reference -
You can modify the styling of the tags as well by making changes in your base.css file.
The product tags should now appear on your product page.
Do give it a try and let me know if this was helpful.
Thanks.
This is an accepted solution.
Hi @Dekanten
Thank you for reaching out to the Shopify community.
For adding product tags in product page just go to your theme code editor, and search for file named main-product.liquid in Sections folder. Add the below code just above the price div.
<div class="product-tags">
{% for tag in product.tags %}
<span class="tag">{{ tag }}</span>
{% endfor %}
</div>
Screen shot for reference -
You can modify the styling of the tags as well by making changes in your base.css file.
The product tags should now appear on your product page.
Do give it a try and let me know if this was helpful.
Thanks.
Thank u so much, it works quite well so im pleased with this solution. 🙂
Is is possible to add something like this - between the tags?
Damer - Herrer - Unisex - Nisje
same thing here! How to separate them.
Nicely works, thanks, but I wonder if tags can be hyperlinked ?
Edit: just found the solution elsewhere, thank you.
Hi there. Could you share the link to your solution for adding the hyperlink to the tags please?
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025