Hide Filter option for a specific collection

Solved

Hide Filter option for a specific collection

miltokas
Explorer
78 0 20

Hi there,

How can I hide a specific Filter option (i.e. Gender) for a specific collection.

I am asking this because there is no possibility to have multiple Filter combinations that can be picked per collection. 

Can I use the Custom CSS of a collection to specify to hide? 

Website: https://venga-store.com/collections/festival-outfits-women

Theme: Dawn

Thanks for your help!

 

miltokas_0-1719772232370.png

 

Accepted Solution (1)

shreyhweb
Shopify Partner
633 111 115

This is an accepted solution.

@miltokas 

 

Hello,

 

You can hide by custom Css just copy the below code and paste above </body> in theme.liquid file.

 

Online store >> edit code >> theme.liquid

<style>
.facets__form-vertical details:nth-child(3) {
    display: none!important;
}
</style>

 

I hope it is helpful. 

 

Thank you

- If You Find Our Solution Helpful Please Like And Mark As Accepted!
- Sip, savor, and support – your Coffee Tip helps us keep coding.❤️
- If You Want To Further Discussion. Then Contact - info@shreyhsoftsolutions.com

View solution in original post

Replies 2 (2)

shreyhweb
Shopify Partner
633 111 115

This is an accepted solution.

@miltokas 

 

Hello,

 

You can hide by custom Css just copy the below code and paste above </body> in theme.liquid file.

 

Online store >> edit code >> theme.liquid

<style>
.facets__form-vertical details:nth-child(3) {
    display: none!important;
}
</style>

 

I hope it is helpful. 

 

Thank you

- If You Find Our Solution Helpful Please Like And Mark As Accepted!
- Sip, savor, and support – your Coffee Tip helps us keep coding.❤️
- If You Want To Further Discussion. Then Contact - info@shreyhsoftsolutions.com

Made4uo-Ribe
Shopify Partner
6999 1666 2058

Hi @miltokas 

check this one.

  1. From you Admin page, go to Online Store > Themes
  1. Select the theme you want to edit
  2. Under the Asset folder, open the main.css(base.css, style.css or theme.css)
  3. Then place the code below at the very bottom of the file.

 

div#shopify-section-template--21622345466188__product-grid .facets__disclosure-vertical.js-filter:first-of-type {
    display: none;
}

 

  • And Save. 
  • Result:
    Made4uoRibe_0-1719779646406.png

     

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.