Hi,
A while back I asked for some assistance to remove the “sort by” feature from the woo-commerce shop page. However, I no longer have that post on my account history so I can’t find what the code I used to remove it was. I need it because I would like to reactivate the “sort by” option, but only have the “sort by by newness” option showing.
Hello There,
Thanks for writing in!
You have used a custom css to hide the “Sort by” feature in your shop page. You have added this:
.woocommerce-ordering select {
display: none;
}
And if you want to modify the sort by feature, this article might help you:
Please let us know how it goes.
Hi RueNel,
Thank you, that’s the code I was looking for. The link isn’t helping me too much. What would I need if I only want “Default sorting” and “Sort by newness” available on the pull-down menu?
Thanks again,
Renzo.
Hi @renzofernandez,
The link should serve as a guide on how to customize it, the only sample is adding random sorting in the list. I recommend contacting a Woocommerce developer as we’re not familiar with those API as given in the sample.
Thanks!
Oh alright, thank you for the help. I was able to find this that works:
.orderby option[value=“price”]{
display: none;
}
.orderby option[value=“popularity”]{
display: none;
}
The only issue is that I can’t seem to find the value for ‘sort by price “high to low”’. Any idea what that might be?
Was able to find it. It’s “price-desc”. Hopefully this helps anyone else that is looking for a similar result.
Glad to hear that.
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.