Advertisement

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 sorting options
remove_action('woocommerce_before_shop_loop', 'woocommerce_catalog_ordering', 30);

Advertisement

Web designer and developer from Southampton, UK.


Comments are closed for this post.

Advertisement

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.