WooCommerce by default Show product count on the shop page as well as the categories page. Alot of online store owners do not like to show the count and want to remove it.
We have tested a simple CSS code that will help you to remove product count.
Please add the below code at the very bottom of style.css file of your theme. Go to: Appearance –> Editor –> Style.css
[codesyntax lang=”php”]
.woocommerce-result-count { display: none; }
[/codesyntax]
Before It looks like
After adding the code
That is it. Thanks
How about when you want to remove a category products count from a shop page in woo?
Thanks Dave E
Add this code at the bottom of your theme’s functions.php file to remove from category and other pages.
remove_action(‘woocommerce_before_shop_loop’, ‘woocommerce_result_count’, 20);