But it’s not working. Maybe it’s because I’m using the newest Prestige Version (10.0.2)?
I would also like to add only certain values to the filter options. For “Sizes”, for example, I don’t want to show all values as filter options, but only manually selected ones (only size 52-64, but not size 96-X-179-cm etc). How can I customize these filters?
I’d be happy to help you with customizing the sorting options on your collection page. Could you please share the link to your collection page so we can take a closer look at the CSS selector and provide a CSS solution? However, I think it would be even better if we could eliminate the sortby options from the liquid code itself.
For customizing the displayed filter options, I recommend using the Shopify Search & Discovery App.
It’s a powerful tool that can help you achieve your desired outcome.
If everything works out fine then the Alphabetically, A-Z and Alphabetically, Z-A should be removed from the sort by dropdown now.
To remove the rest we need to right click on the option and inspect it. In the dev tools it will highlight the inspected element and we just need to get the “value” attribute. It can be too complex, if you are having difficulties please just share me the screenshot of the inspected options. I will change the given code and make the necessary modifications to apply it on the rest.