How to hide default sorting drop-down from WooCommerce?

WooCommerce is a fast growing  e-commerce platform and one of the most popular WordPress plugins on the internet. It comes with a lot of built-in features including the product sorting drop-down menu on shop page.  However, You may want to remove this drop down menu if your online store don’t have many product or it is causing CSS issues in your theme.

Quick Tip : How to hide coupons from Checkout and Cart Page in WooCommerce?

How to hide default sorting drop-down from WooCommerce?

To remove this drop down add the following code snippet to your functions.php file.

//hide default sorting drop-down from WooCommerce
remove_action( 'woocommerce_before_shop_loop', 'woocommerce_catalog_ordering', 30 );

 

0 Comments

Leave a Comment.