Here’s how to remove those annoying “yellow” product category counters in the WooCommerce shop / category / loop pages. You will find several versions of this snippet all over the internet…. but in case you haven’t found it yet, here’s the simple PHP code you need to add to your functions.php file.

WooCommerce Category Counters
WooCommerce Category Counters WooCommerce Category Counters

Snippet (PHP): Remove the Product Category Counters @ WooCommerce Loop Pages


/**
 * @snippet       Remove the Category Counters | WooCommerce Shop / Loop
 * @how-to        Get CustomizeWoo.com FREE
 * @sourcecode    https://businessbloomer.com/?p=362
 * @author        Rodolfo Melogli
 * @compatible    WooCommerce 3.5.4
 * @donate $9     https://businessbloomer.com/bloomer-armada/
 */

add_filter( 'woocommerce_subcategory_count_html', '__return_null' );

Share:

Leave a Reply