Home › Forums › Support › remove woocommerce product category count on shop page This topic has 5 replies, 3 voices, and was last updated 5 years, 2 months ago by David. Viewing 6 posts - 1 through 6 (of 6 total) Author Posts March 10, 2021 at 12:01 pm #1690201 Pauline Hi I would like to remove the woocommerce product category count on the shop page. I have tried pasting the following into “Additional CSS” but neither seem to work. Can you advise what I am doing wrong? Thanks! .woocommerce-loop-category__title mark.count { display: none; } .woocommerce-loop-category__title mark.count { display: none; } March 10, 2021 at 12:10 pm #1690213 YingStaff Customer Support Hi Pauline, There should be a space between the 2 levels, try this: .post-type-archive-product .woocommerce-loop-category__title .count { display: none; } March 11, 2021 at 4:11 am #1690901 Pauline Hi Ying Thanks for looking into this 🙂 but the CSS does not remove the product count. Do you have something else I could try? Pauline March 11, 2021 at 6:10 am #1691041 DavidStaff Customer Support Hi there, try adding this PHP Snippet: add_filter( 'woocommerce_subcategory_count_html', 'db_remove_cat_prod_count' ); function db_remove_cat_prod_count() { return; } Adding PHP: https://docs.generatepress.com/article/adding-php/ March 12, 2021 at 2:08 am #1692144 Pauline Thanks so much David – it worked perfectly 🙂 March 12, 2021 at 5:30 am #1692335 DavidStaff Customer Support You’re welcome Author Posts Viewing 6 posts - 1 through 6 (of 6 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In