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.
Goal: hide the ‘Best selling’ sort option on collection pages via custom CSS (no theme code edits), starting with the Impact 4.7.1 theme.
Mobile (Impact): Worked by hiding the parent when a child input has value ‘best-selling’: .checkbox-container:has(> input[value=‘best-selling’]) { display: none; }.
Desktop (Impact): The initial :has() attempt failed due to different markup/classes. A direct selector worked: .popover-listbox__option[value=‘best-selling’] { display: none; }.
Studio theme request: For Studio, the provided solution targets the option element directly: .facet-filters__sort option[value=‘best-selling’] { display: none; }.
Notes:
Status:
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.