Tagged: enfold, woocommerce category
Hi there
Just upgraded to latest WooCommerce, Enfold and WordPress.
Is it possible to remove the product quantity text in the category layout of Woocommerce and Enfold.
and also where can I style the font size and color of the Category’ titles.
Thank you for your time.
Hey waveshaper!
Please use the following
ul.products .quantity { display: none; }
Best regards,
Basilis
Hi Basilis
Thank you for looking into this.
I added the above styling to my child-theme CSS but it has no effect.
I tried
ul.products .quantity { display: none!important; }
as well and still no change.
I did clear the cache.
Also, how can i change the font-size and center the text for the categories?
Thanks
This styling worked for the font size –
`.woocommerce-loop-product__title, .woocommerce-loop-category__title {
font-size: 20px;
text-align:center;
}
but still, not the quantity.
Hi waveshaper,
Can you try this code instead?
.woocommerce-loop-category__title .count { display:none; }
Best regards,
Sarah
@waveshaper although you can throw CSS on many issues to ‘solve’ them (it’s hiding not solving) the way to remove the category count in WooCommerce is to add the following function to the functions.php of your child theme:
add_filter( 'woocommerce_subcategory_count_html', '__return_empty_string' );
@mensmaximus Brilliant! this is what I was looking for, I also prefer the correct way, removing it properly. Much appreciated, keep up the excellent work.
@sarah Hi Sarah, thank you so much for your input, have a beautiful day.
Hey!
You’re welcome. Let us know here in the forums if you need help with anything else. Have a wonderful day!
Cheers!
Sarah