How to remove the WooCommerce results count

Need to remove the WooCommerce results count? –  the text that shows up on the WooCommerce category pages displaying the amount of products in the category / current filter.

Removing it is easy and offers a nice, simple view on stores with small numbers of products.

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

Occasionally, some themes add this to the bottom of the pages also. You can amend

woocommerce_before_shop_loop

to

woocommerce_after_shop_loop

3 Comments

  • John Fesenmyer

    September 29, 2018

    With thanks! Valuable information!

    Reply
  • Scott

    March 27, 2020

    Am I the only one for whom this code does not work?

    Reply
    • LWD

      March 30, 2020

      Could be, Make sure it is in your theme’s functions.php

      Reply

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.