FROM CACHE - en_header

HOW TO MAKE PRODUCT TAGS VISIBLE FOR FILTERING SEARCHES ON DAWN THEME

Ortaliza
New Member
6 0 0

HOW TO MAKE PRODUCT TAGS VISIBLE FOR FILTERING SEARCHES ON DAWN THEME

Replies 4 (4)
digitsupCA
Shopify Partner
188 12 40

There is no option to do this on dawn but you need to do this by adding custom code on facets.liquid file see below code  see below screen short and code 

 

{% if collection.all_tags.size > 0 %}
  <ul class="tag-filters">
    {% for tag in collection.all_tags %}
      {% if current_tags contains tag %}
        <li class="tag-filters__item active">{{ tag | link_to_remove_tag: tag }}</li>
      {% else %}
        <li class="tag-filters__item">{{ tag | link_to_add_tag: tag }}</li>
      {% endif %}
    {% endfor %}
  </ul>
{% endif %}

 

digitsupCA_1-1639281227036.png

If helpful then please Like and Accept the Solution.
Shopify theme and app developer.
Thanks

 

- Did we solve your issue? Like & Mark As Solution to help the community

Should you need any direct help: https://www.upwork.com/freelancers/~01f7c2b0b17e9c9b8d
Geppux
Excursionist
32 0 5

There is no a way to have it in a descending menu? is not nice to have all the tags displayed on the page...

Ortaliza
New Member
6 0 0

Your solution does work but unfortunately, I am really looking for something like this for example Plants (farm.one). It would be more like actual tags under all products. Thank you.

Geppux
Excursionist
32 0 5

I solved using metafields...obviously this is not a solution for those who want to use the tags already in the products.