Shopify themes, liquid, logos, and UX
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!
Solved! Go to the solution
This is an accepted solution.
Hey @shopmentor,
Please try this.
.popover-listbox__option[value="best-selling"] {
display: none;
}
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.
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.
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;
}
This is an accepted solution.
Hey @shopmentor,
Please try this.
.popover-listbox__option[value="best-selling"] {
display: none;
}
Thank you @ThePrimeWeb! That worked perfect for me. Let me know if there is anything I can help you with in the future!
Hi @ThePrimeWeb - I have a very similar question I am battling with on the STUDIO theme: https://themes.shopify.com/themes/studio/styles/default/preview. The classes are slightly different and what would I use on this theme to hide "Best selling"? I have tried many variations of this and nothing works...
.facet-filters__sort[value="Best-selling"] {
display: none;
}
Can you perhaps help me on my theme?
.facet-filters__sort option[value="best-selling"] {
display: none;
}
By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024