Tuesday, 15 March 2016

WooCommerce Remove Default Sorting - Shop Page

Remove WooCommerce Default Sorting Dropdown Select

To Remove "Default Sorting" on WooCOmmerce shop page. We will remove "woocommerce_catalog_ordering" from "woocommerce_before_shop_loop" hook. Dont forge to add the $priority value in the action hook which is "30" in this hook.
remove_action( 'woocommerce_before_shop_loop', 'woocommerce_catalog_ordering', 30 );
Paste the above code in your themes functions.php file to remove "Sort By" dropdown select from the shop page in WooCommerce.

No comments:

Post a Comment