How to Remove the WooCommerce Search Result Count

Showing the number of results for a website search is a common practice these days. It is meant to give users, at a glance, an idea of just how broad (or specific) their search term was. WooCommerce shows the result count at the top and bottom of every search that takes place on your store as well as individual category pages by default.

Search Result Count in WooCommerce
An example of a Search Result Count in WooCommerce

The search result count can often be an unnecessary detail just like the sorting dropdown. If your store has a limited number of products you might find yourself looking for a solution to remove the count entirely from your WooCommerce theme.

You can accomplish this with some light theme editing or you can use our Remove WooCommerce Features plugin and avoid having to update your store’s theme or get involved with accessing the files on your server.

How to Disable Search Result Counts from WooCommerce with Code

To remove the search result count yourself you will have to make some slight changes to your theme’s functions.php file. Open that file up in any text editor, work your way down to the bottom of the file and add the following two lines of code:

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

This code will remove the count display at the top and bottom of the search result and category pages of your site.

Save the file and then upload it back to your server. Make sure you put it in your theme’s directory. Once that process is complete you are all set. If you are unsure about things and still want to go down this road of editing your theme you can find a freelance WordPress developer who should have no trouble taking care of this for you.

There are some things to remember if you edit your theme. Unless you use what is called a child theme, any changes you make to the functions.php file will be overwritten the next time you download an update your theme provider has released. Also, if you change your WooCommerce store theme to something else the changes will be lost.

Again, if all of this sounds a little beyond your grasp or you are concerned about messing something up then find a WooCommerce expert to help you out. Or consider giving our plugin a try.

How to Remove Search Result Counts from WooCommerce without Code

You will need to purchase a copy of Remove WooCommerce Features and then install and activate the plugin on your site. From there you can remove the search result count from your theme in three very simple steps.

Step #1

Go to the WooCommerce section of your WordPress installation’s admin menu and click the link that says “Remove Features.”

WooCommerce Admin Menu

Step #2

Find the setting for “Search Result Count” and click the checkbox so that it’s marked like so:

Remove WooCommerce Features - Search Result Count

Step #3

Press the “Save Settings” button.

Save Settings Button

Now you’re all set. Changes you make with Remove WooCommerce Features take place immediately after your settings are saved. You can go to any search or category on your store and now see that the search result count has disappeared.

Search Result Count Removed from WooCommerce
An example of a Search Result Count Removed from WooCommerce

Our plugin doesn’t care about what theme you are using, or if it has been recently updated, so your setting is always preserved. You’ll never have to edit your theme’s files or pay someone else to do so for you once you have Remove WooCommerce Features installed on your store.

In addition to dealing with search result counts (and the sorting dropdown we mentioned way at the start of this post), the plugin will help you remove a bunch of other common WooCommerce features that sometimes get in the way more than they help.

Our plugin lets you adjust over 20 individual settings on your store without having to write a single line of code. The entire list of features can be found here on our site.