Hide category description text in shop
-
Hi, I have some descriptions in the categories, but would not want them to show up in the shop when clicking that specific categorie.
<div class=”site-content shop-content-area col-lg-9 col-12 col-md-9 order-md-last description-area-before content-with-products” role=”main”>
<div class=”woocommerce-notices-wrapper”></div>
<div class=”term-description”><p>TEST</p>
Above the <P> should be hidden if that is possible.
What do i need to add to the CSS, or can i hide this “Categorie description” in the admin?
Attachments:
You must be
logged in to view attached files.
Hello,
I do not understand what you want. The category description is shown on the category page. When you click a category from the shop page, you will get to the category page and see the category description.
Best Regards
Hi Elise,
Since i only use this “category description” text field for SEO purposes, I don’t want it to show up on the category page in the shop.
So I want to hide the description text on the category field (by CSS), without deleting the text of this categorie in the admin.
I have made this because it’s a combination of SEO of Yoast, and don’t want to show it on the category page.
Hello,
Please add this code to the Theme Settings > Custom CSS > Global:
body .term-description {
display:none;
}
This code would hide the description in the Category page.
Best Regards
SUPER! thank you very much :-))
You are welcome! If you have any questions please feel free to contact us.
Best Regards
The topic ‘Hide category description text in shop’ is closed to new replies.