Remove Sorting Options in WooCommerce

WooCommerce has a helpful dropdown with sorting options that shows by default when using a supported theme. On a site with only a few products though, especially products that’ll likely never change, it’s a bit overkill.

Here’s a snippet to get rid of it without having to search through WooCommerce template parts.

remove_action('woocommerce_before_shop_loop', 'woocommerce_catalog_ordering', 30);

Inspirational Newsletter


Join the newsletter to get the best articles, tutorials and exclusive freebies every two weeks.

No spam. You can unsubscribe at any time.