Hide Product Category Count in WooCOmmerce. If you want to hide product category count on the shop page, you only need to add this code to the bottom of your child theme’s functions.php file.