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);
Join the newsletter to get the best articles, tutorials and exclusive freebies every two weeks.