If you use WordPress and WooCommerce to sell products on your website, you may well want to remove the default sorting and/or “Showing All X Results” text from your shop and category pages – particularly if you don’t have more than a handful of products!
The code snippets below will allow you to do just that.
These snippets should be added to your theme‘s Functions.php file, and you should try to use child themes so that, when you update the theme’s code (you do update, right?!) you won’t simply over-write all your changes and revert back to the old situation.
Code to Remove Default Sorting Option from WooCommerce Shop / Category Pages
remove_action( 'woocommerce_before_shop_loop', 'woocommerce_catalog_ordering', 30 );
Code to Remove “Showing All … Results” Text from WooCommerce Product, Catalog, and Shop Pages
remove_action( 'woocommerce_before_shop_loop', 'woocommerce_result_count', 20 );
Ask a question in the comments section, below, for public help, or, if you have a WordPress / WooCommerce / e-commerce project you’d like professional assistance with, feel free to contact us using the available telephone and email options found here.