Woo Commerce by default provide sorting functionality in the plugin in the product listing pages. It is very useful to some users to find the best product by this option. But sometime it is unnecessary to keep the sorting functionality. So we need to remove it from the site. Here we will see how to remove “default sorting” drop-down from shop and category pages.

Put the following code in your function.php file :

// remove default sorting dropdown
remove_action( 'woocommerce_before_shop_loop', 'woocommerce_catalog_ordering', 30 );
There are currently no comments.