WooCommerce – Removing the Default Sort & Result Count dropdown

Disclaimer: This post may contain affiliate links and I receive a commission if you visit a link and buy something based on my recommendation. Purchasing via an affiliate link doesn’t cost you any extra, thank you for supporting my taco fund.

Ever found that your design didn’t need the default sort dropdown or result count in WooCommerce?

Maybe you have a simple shop or just don’t need the feature. There is an easy way to remove the default sort dropdown and result count so that you can have the desired look you like.

It’s just some simple code you add to your functions.php file.

Note: Just remember to backup your site before making any changes.

Remove Default Sorting On WooCommerce Shop & Archive Pages

Copy and paste the following code into your functions.php file to remove the default sorting dropdown:

// Remove the sorting dropdown from Woocommerce
remove_action( ‘woocommerce_before_shop_loop’ , ‘woocommerce_catalog_ordering’,  30 );

Code Snippet - Remove Default Sorting Dropdown WooCommerce

Remove Result Count From WooCommerce Shop & Archive Pages

Copy and paste the following code into your functions.php file to remove the default result count dropdown:

// Remove the result count from WooCommerce
remove_action( ‘woocommerce_before_shop_loop’ , ‘woocommerce_result_count’,  20 );

Code Snippet - Remove Default Result Count WooCommerce

That’s pretty much it! Now you can continue styling your WooCommerce Shop the way you like.

If you are ready a fully custom shop that helps you to continue to grow your business. Get in touch to learn how we can work together to craft a custom online experience for your business.

Craft a custom online experience

Join the conversation