WooCommerce Tutorial: Remove “Showing All … Results” and “Default Sorting” from Shop / Category Pages

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 );

Need Help?

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.

11 thoughts on “WooCommerce Tutorial: Remove “Showing All … Results” and “Default Sorting” from Shop / Category Pages”

    • Hi Lisa,

      Sorry I missed this question – you should add it anywhere, but, for safety, at the bottom of Functions.php. If you are using a child theme (recommended) this may be empty.

      Reply
  1. Hi,
    Great tip! It worked. However, i cannot remove the ‘All Products’ title at the top of my woocommerce ‘Shop’ page. Can you help? Thanks in advance!

    Reply

Leave a comment

No links of any kind allowed in comments - if you add any links, your comment will automatically be deleted.