Archived topic
Remove the Default Sorting on WooCommerce
19 replies · Started by Harvey on February 17, 2022
You’re welcome Harvey! Glad it’s working now! Feel free to reach out anytime if you’ll need assistance with anything else. :)
Per the Woocommerce Docs I have added this snippet in a child theme functions.php:
//Result Count
remove_action( 'woocommerce_before_shop_loop', 'woocommerce_result_count', 20 );
//Default Sorting
remove_action( 'woocommerce_before_shop_loop', 'woocommerce_catalog_ordering', 30 );
This works to remove the Result Count, but the Default Sorting is not being removed. I tried priority 10,20,30,40 , but none of them work.
Any thoughts?
Hi Aaron,
In Appearance > Customize > Layout > WooCommerce, you can disable product sorting there.
You can also remove the results count there.
Thanks, I missed those settings. They must be relatively new.
You’re welcome Aaron!
Here’s an overview of the WooCommerce Module: https://docs.generatepress.com/article/woocommerce-overview/