Remove Product Categories Description

Hi there,

Could you help me remove the product categories description from the Woocommerce products please? I’ve highlighted in yellow in the attachment where I mean.
Thanks for your help.
Matthew

Hi Matthew,

Thank you for writing in, you need a custom CSS to do that.

You can find the proper CSS code selector using the Chrome browser Developer Toolbar
For the CSS code itself, I suggest that you get started with this tutorial

e.g.

.product_meta span.posted_in {
    display: none;
}

Cheers!

Thank you Friech, that worked a treat.

Can I also ask please - in both the single blog posts and the blog index, I want to switch off the category, and switch on the date, having it central underneath the title. Can you help with that please?

Thanks,
Matthew

Hey Matthew,

The date in the post meta were hidden away using a custom CSS. You have used this code to do that:

.blog .entry-header .p-meta > span:nth-child(2), 
.single .entry-header .p-meta > span:nth-child(2) {
    display: none;
}

If you want to display the date and hide away the category, all you have to do is to update the code and use 3 in the code. Therefore the final code will be:

.blog .entry-header .p-meta > span:nth-child(3), 
.single .entry-header .p-meta > span:nth-child(3) {
    display: none;
}

Note: If you are unfamiliar with code and resolving potential conflicts, you may select our One or Care service for further assistance. We are unable to provide support for customizations under our Support Policy.

We would love to know if this has worked for you. Thank you.

Brilliant, thank you Ruenel. Don’t know how that got there, good spot!
Cheers!
Matthew

You’re more than welcome, glad we could help.

Cheers!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.