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 );
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 );
That’s pretty much it! Now you can continue styling your WooCommerce Shop the way you like.