Removing category count

Hi

I’m currently developing a woocomerce website, on this i would like to remove the category count on the item categories/subcategories. i have got some css code to do this offline;

add_filter( ‘woocommerce_subcategory_count_html’, ‘jk_hide_category_count’ );
function jk_hide_category_count() {
// No count
}

But this causes lots of errors with unexpected token and doesn’t work with this theme.

Also on some themes (like this one) it is possible to do that in the settings, im guessing this theme doesn’t do that.

Do you have a way to remove this on this theme?

Many thanks James

Hello James, try to use the following CSS code to hide (not remove) that count. You can add CSS code in Customize → Additional CSS section.

mark.count {
    display: none;
}

Please feel free to ask any other questions that you might have.

Kind Regards, Roman.

Hi
thank you for your reply, i have tried this and unfortunately it hasn’t removed the category count from the website

Hello James,

I’ve just checked your website and saw that the code is there and it’s working. Can you please confirm this?

Kind Regards, Roman.

Hi

Sorry i forgot to say, yes i managed to sort it, thank you for your help

You are welcome James!

Kind Regards, Roman.