Looking for a way to remove the WooCommerce sorting dropdown? This is the dropdown that shows up on the WooCommerce product archive pages that allows you to sort your products by popularity, average rating, newness and price. It’s actually really easy to remove. Simply copy and paste this snippet into your WordPress themes functions.php file and you’re good to go!
// Remove the sorting dropdown from Woocommerce | |
remove_action( 'woocommerce_before_shop_loop' , 'woocommerce_catalog_ordering', 30 ); |
Leave a Reply