Grey fields around product tags with direct url links - Dawn theme

Hello

I want to change something in the product tags, i have made uppercase text and now i want to have grey fields on each tag. Also each link have a url to direct to each collections. Can that be possible? :slightly_smiling_face:

Thanks for all your contributions for helping me out here. :slightly_smiling_face:

My store url:

www.dekanten.no

See attached image:

Use metafields to add URLs to each tag.

There is no direct link between tag and collection.

You could check whether there is a collection with the name/handle matching a tag and this could work, but your tag is โ€œnyhetโ€ while collection title/handle/url is โ€œnyheterโ€, soโ€ฆ

However, instead of listing tags you can list product collections:

{% if product.collections.size > 0 %}
  
    {% for c in product.collections %}
      {{ c.title | upcase }}
    {% endfor %}
  

{% endif %}

(style should probably go to your stylesheet and not be a part of section code, but).

I havent done metafields before, do you have any ideas to create the first meta so i can try to to the rest, maximum tags on a product will be max 5 pcs.

This is a list of complete tags then. I want everyone of these added with an url who leads to these collections. Any guide you can help me with ? :slightly_smiling_face:

Damer - Herre - Unisex - Nyhet - Designer - Nisje