Remove “Showing all X results” from Shop and Product Archive Pages

Each WooCommerce archive page has this text “Showing all X results” or “Showing the single result”. In this tutorial I will introduce two ways how to remove it.

How to remove result count from archive pages in WooCommerce

Method 1 – result-count.php

So 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.

It is not a preferable way, but I think you should know that is is also possible and all the code of that count is in this file.

Why not preferable? Because each time you update WooCommerce plugin, you have to check if there any changes in files you replaced.

Method 2 – Removing Action Hook

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

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

More about WooCommerce

Misha Rudrastyh

Misha Rudrastyh

I love WordPress, WooCommerce and Gutenberg so much. 10 yrs of experience.

Need some custom developer help? Let me know

Follow Misha

Need some help with WooCommerce?

If you need some professional developer help, I will be happy to assist you.

Contact me Who I am?

Leave a comment

php js HTML CSS Code

I will only use your personal information to contact you. Privacy Policy