Hi all,
I'm having an issue hiding tags on the collections page but making products with that tag coming up in search.
This is the code snippet I believe needs editing in collections-sidebar.liquid (if it makes a difference I'm using the Supply theme).
<div class="grid-uniform">
{%- comment -%}
Loop through tag categories
{%- endcomment -%}
{%- for cat_item in cat_array -%}
<div class="grid-item small--one-half medium--one-third">
<h2 class="h3">{{ cat_item }}</h2>
<ul class="advanced-filters">
{%- comment -%}
Loop through collection tags
{%- endcomment -%}
{%- for tag in collection.all_tags -%}
{%- assign cat = tag | split: '_' | first -%}
{%- if cat != tag and cat_item == cat -%}
{%- comment -%}
Strip out tag category prefix and add/remove link for tag filtering
{%- endcomment -%}
{%- if current_tags contains tag -%}
<li class="advanced-filter active-filter" data-group="{{ cat_item }}" data-handle="{{ tag | handle }}">{{ tag | remove_first: cat_item | remove_first: '_' | link_to_remove_tag: tag }}</li>
{%- else -%}
<li class="advanced-filter" data-group="{{ cat_item }}" data-handle="{{ tag | handle }}">{{ tag | remove_first: cat_item | remove_first: '_' | link_to_add_tag: tag }}</li>
{%- endif -%}
{%- endif -%}
{%- endfor -%}
</ul>
</div>
{%- endfor -%}
</div>
Any ideas? - Thanks
User | Count |
---|---|
23 | |
19 | |
18 | |
17 | |
16 |