While working on a recent customization for a WooCommerce site, I had a little difficulty tracking down exactly where the orderby drop down that appears above product listings lives in the code. Since I didn’t find a blog post addressing this directly, I thought I would share what I figured out.
To remove the drop down and ordering options completely, add the following to your functions.php file:
remove_action( ‘woocommerce_before_shop_loop’, ‘woocommerce_catalog_ordering’, 30 );
Some folks have commented that this works for them:
remove_action( 'woocommerce_before_shop_loop', 'woocommerce_catalog_ordering', 20 );
However, if you want to edit the drop down and make it something else. You can find the file at the following location:
You can then copy that file to your theme folder, edit it, and override the default drop down.
Hope this helps anyone who gets stuck looking for how to remove the Orderby drop down on WooCommerce listing pages.