WooCommerce: How to remove the “default sorting” dropdown

There is predefined hook  which is used to add sorting dropdown in woocommerce and also there is option in wordpress to disable or remove particular hook using “remove_action” function.Please  check ,read about it more and add the following code  snippet to your theme functions.php

 

// remove default sorting dropdown
remove_action( 'woocommerce_before_shop_loop', 'woocommerce_catalog_ordering', 30 );

 

One Comment

Add a Comment

Your email address will not be published. Required fields are marked *