Hey,
You can try something like this:
add_action( 'init', 'jk_remove_sorting' );
function jk_remove_sorting() {
remove_action( 'woocommerce_after_shop_loop', 'storefront_sorting_wrapper', 9 );
remove_action( 'woocommerce_after_shop_loop', 'woocommerce_catalog_ordering', 10 );
remove_action( 'woocommerce_after_shop_loop', 'woocommerce_result_count', 20 );
remove_action( 'woocommerce_after_shop_loop', 'woocommerce_pagination', 30 );
remove_action( 'woocommerce_after_shop_loop', 'storefront_sorting_wrapper_close', 31 );
}
I recommend adding this snippet to our Theme Customisations plugin: https://github.com/woothemes/theme-customisations
Thanks
Where do I add this code? At the end of all the code that’s there…. Thanks
You add it to this file: theme-customisations/custom/functions.php
Then upload and activate the plugin.
I did try your code, but it did not remove one of the Default Sorting dropdown boxes. And I did place the code in this file: theme-customisations/custom/functions.php
Any suggestions? Thanks