We have a quick question today from Gabi:
Hi. I’ve tried using your Remove sorting options plugin to remove my dropdown, but removing all options leaves the dropdown there. Is there a change I need to do to remove the empty sorting dropdown?
If you’d like to remove some of the built-in WooCommerce sorting options, our WooCommerce Remove Product Sorting can easily do it for you. However, this isn’t the best option if you want to remove the entire sorting dropdown. Fortunately this is pretty easy to do as well.
If you’ve never added a code snippet to your site, check out our tutorial on how to do so, and we can snip this sorting dropdown right out of the shop.
The product sorting dropdown is added here, so all we need to do is remove that action so that it’s never added into our shop loop. To do so, add this snippet:
remove_action( 'woocommerce_before_shop_loop', 'woocommerce_catalog_ordering', 30 );
Now we’ll have shop and category pages that never add this action, which means your dropdown won’t appear.
All done! Now the dropdown will never appear in any shop loop.
Need some help taking this code further? We recommend Codeable for small custom projects.
Hey, thanks Beka! Worked like a champ! 🙂
Hello
Can i give you acces to my website and you remove it
I tried once and my site crashed and had to reinstall everything
Hey drago, sounds like it was added in the wrong place — check this tutorial out to learn how to add custom code.
Hello, thank you very much for your tutorial. I need to remove this “View” too. Any now how?
http://oi64.tinypic.com/8yuxys.jpg
I used snippet code tutorial 😉
Hey there, that “per page” selector is not added by WooCommerce by default, so I would look at your plugins and switch themes to figure out what’s adding it. If it’s from the theme, you’d want to contact the author to determine how to remove it.