Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
I am using the Sunrise theme, lightly modified. I am wanting to exclude some tags from my filter by tags in Search and Discovery.
I have seen that it is possible, but other themes have a filter.liquid file to modify the loop. I am unable to find a filter related file. I can add a prefix to my tags or whatever is needed. I just need to know where to put the loop to exclude the unwanted tags.
Thanks in advance for the help!
You can do it by using this simple method, find the liquid that renders the tags filter, adding the data-value="{{value}}" (value is the tag name/filter value). For example:
<div class="facet" data-value="{{value}}"> {{ value }}</div>
and then in the CSS, add the display none for those tags that you want to hide
.facet[data-value="{{value1}}"],
.facet[data-value="{{value2}}"],
.facet[data-value="{{value3}}"] {
display: none;
}
Or you can try some filter app and exclude the filter option that you don't want to show
https://apps.shopify.com/ultimate-search-and-filter-1
Hey Community 👋 Did you know that March 15th is National Everything You Think Is W...
By JasonH Apr 1, 2025Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025