How to remove the number of products in the WooCommerce category

When displaying categories on woocommerce store pages, by default, the number of products in this category is shown in brackets. To remove it, add it to functions.php your theme has the following code:

//removing the number of products
add_filter('woocommerce_subcategory_count_html','remove_count');

function remove_count(){
 $html='';
 return $html;
}

Updated: 18.04.2020

Did this article help you? Rate it!
(No Ratings Yet)
Loading...

Support on Patreon https://www.patreon.com/processby

Leave a Reply

Your email address will not be published. Required fields are marked *

Contacts

E-mail: processby@gmail.com
Skype: inprocess.by
Belarus, Grodno

Send message