Solved

Remove "best selling option" from my sort by on collection page

shopmentor
Shopify Partner
7 0 0

Hey guys, I want to remove the option "best selling" from my sort by on collection page. I use the Impact theme 4.7.1 but I can't figure out which custom css I need to use to hide this option.

 

I don't want to change the theme code, I want to be able to hide this option via custom css in the theme customizer.

 

Thanks for your help! 

 

sort-by.jpg

Accepted Solution (1)
ThePrimeWeb
Shopify Partner
1183 308 227

This is an accepted solution.

Hey @shopmentor,

Please try this. 

.popover-listbox__option[value="best-selling"] {
  display: none;
}



Was I helpful?

Buy me a coffee

🙂

Need help with your store? contact@theprimeweb.com or check out the website

View solution in original post

Replies 4 (4)

ThePrimeWeb
Shopify Partner
1183 308 227

Hey @shopmentor ,

You can use CSS code to hide it

.checkbox-container:has(> input[value="best-selling"]) {
    display: none;
}

Basically, hide the parent if the child has a certain value.

Was I helpful?

Buy me a coffee

🙂

Need help with your store? contact@theprimeweb.com or check out the website
shopmentor
Shopify Partner
7 0 0

Thank you very much. That worked perfect for me! I noticed that the best selling option is only hidden on mobile devices now. The desktop version has a different class as you can see in the screenshot.

desktop.jpg

 

I tried this code, but it looks I did something wrong. Can you help me to identify the issue?

.popover-listbox__option group:has(> input[value="best-selling"]) {
  display: none;
}
ThePrimeWeb
Shopify Partner
1183 308 227

This is an accepted solution.

Hey @shopmentor,

Please try this. 

.popover-listbox__option[value="best-selling"] {
  display: none;
}



Was I helpful?

Buy me a coffee

🙂

Need help with your store? contact@theprimeweb.com or check out the website
shopmentor
Shopify Partner
7 0 0

Thank you @ThePrimeWeb! That worked perfect for me. Let me know if there is anything I can help you with in the future!