Ask SkyVerge

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.

WooCommerce product sorting dropdown

Before

WooCommerce remove product sorting dropdown

After

All done! Now the dropdown will never appear in any shop loop.

Published by Beka Rice

Beka leads product direction for SkyVerge and technical documentation. She spends a lot of time on research and interviews, but likes to write so she has an excuse to spend more time jamming out to anything from The Clash to Lady Gaga.

5 Comments

  1. Hey, thanks Beka! Worked like a champ! 🙂

  2. 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

  3. 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.

Hmm, looks like this article is quite old! Its content may be outdated, so comments are now closed.