Site logo

Archived topic

Hide categories description only

5 replies · Started by docdanijb on January 9, 2019

Viewing posts 1–6 of 6

Hi

I need to hide the description for the categories only in the shop pages (not the products).

E.g. https://ventilasjonost.no/produktkategori/ventilasjonsfilter/

Here I added a description to two of the categories. I want the description to only show on the given category page, but it shows up on this page also.

Tried using these ones:

body.archive .woocommerce-product-details__short-description { 
display: none;
}
.archive .entry-content .woocommerce-product-details__short-description {
    display: none;
}

but they also hide the description for the products.

Thank you in advance.

Hi there,

try:

body.tax-product_cat .woocommerce-product-details__short-description { 
    display: none;
}

Thanks for your reply.

This does the same as the above. It removes the description from products also, not only categories.

Did you find a solution? I can't see the descriptions on the archive link provide but they are their on NETTBUTIKK. Let me know

No, still same problem. Safari fooled me by not refreshing CSS, but the changes either removes all description, or non.

Some pictures of the problem:

Short description of products, that I want to keep:
Short description of products, that I want to keep

Short description that I don't want appear (under categories)
Short description that I don't want appear

Sorry missed one thing - if you go to the Customizer > Layout > Wooocommerce > Shop and uncheck Short Description. What happens?

This archived topic is closed to new replies.