Gender specific filter for Unisex page

New Member
1 0 0



I am creating a general store in which CLOTHING also a category. So scenario is that in navigation CLOTHING is a drop down menu, with MEN and WOMEN links, which works fine but in case if some one clicks right on clothing then it will take you to the Unisex page where Men and Women clothing are all together being displayed and there's no way to segregate between MEN and WOMEN.


So, I tried to create a filter with help of "MEN" and "Women" tags and they are working fine too on Unisex page but problem is one of the filter also became visible to its gender specific page which i don't want.  I am using my own purchased theme. Is there any way i can solve it without going to theme developer?

Shopify Expert
395 27 74

You could wrap your filter code in a conditional statement to only show on clothing page, for example:


{% if collection.handle == "clothing" %}
<!-- your filter code here -->
{% endif %}

If you're not sure where the code is at, start with collection.liquid template and read / walk through the code and snippets included, you can probably find it like that.

Founder of Speed Boostr (Shopify optimization and dev agency).
Creator of Order Automator (app that auto fulfills orders, adds tags, emails).
Creator of Shopify Analyzer (free performance analysis tool).
I also build custom apps and automated solutions.
Enjoy the adventure!