How to Remove Result Count

In this tutorial I will introduce two ways of how to remove “Showing X of X results” or “Showing the single result” text from WooCommerce product archive pages.

Example of what we going to remove is on the screenshot below.

removing result count in WooCommerce

I suppose the first method is here more for completeness, because it involves altering WooCommerce template files, which is always not recommended if it is possible to do the same with filter hooks. Why is not recommended? Because each time you update WooCommerce plugin, you have to check if there any changes in files you replaced.

Anyway, if you copy templates/loop/result-count.php from the WooCommerce plugin directory to your theme folder woocommerce/loop/result-count.php, you can change just anything inside the new one. So, this method is probably useful if you would like to completely change the displayed text.

And now we are slightly moving on to the next method, which is 100% effective and you should use it if possible.

So, once you insert the code below into your theme functions.php file, the result count will be automatically hidden from all the archive pages like the shop page, product categories and tags and the search page as well.

remove_action( 'woocommerce_before_shop_loop', 'woocommerce_result_count', 20 );

And one more thing –  if you’re using StoreFront theme, you have to remove woocommerce_after_shop_loop action as well.

remove_action( 'woocommerce_before_shop_loop', 'woocommerce_result_count', 20 );
remove_action( 'woocommerce_after_shop_loop', 'woocommerce_result_count', 20 );

Sometimes this code may not work you, for example, when you’re using it inside a plugin. In that case wrap the code in after_setup_theme action hook.

add_action( 'after_setup_theme', function() {
	remove_action( 'woocommerce_before_shop_loop', 'woocommerce_result_count', 20 );
	remove_action( 'woocommerce_after_shop_loop', 'woocommerce_result_count', 20 );
} );

And also possible to hide it with CSS.

remove woocommerce result count with css
Appearance > Customize > Additional CSS
.woocommerce-result-count {
  display: none;
Misha Rudrastyh

Misha Rudrastyh

Hey guys and welcome to my website. For more than 10 years I've been doing my best to share with you some superb WordPress guides and tips for free.

Need some developer help? Contact me

Follow me on X