Archived topic
Remove excerpt from category page
7 replies · Started by John on January 13, 2018
Hey
I want to remove excerpt text from category page.
Only want to keep Title and Featured Image.
How Can I do It
Hi there,
Try this CSS:
.category .entry-summary {
display: none;
}
Adding CSS: https://docs.generatepress.com/article/adding-css/
Hi Leo!
But it's only hides the text, not remove. Is there any way to remove this part of code?
Unfortunately, This CSS not work for me.
I use it my child theme style.css but not work.
CSS is
.category .entry-summary {
display: none;
}
@Roman: I think you will need to use Tom's first snippet here:
https://generatepress.com/forums/topic/set-excerpt-only-for-categories/#post-269218
and replace ! is_front_page() with ! is_category
@Mamun: I don't see the CSS being added unfortunately. Any caching plugins?
Yup, Wp Rocket.
It works now.
Thanks Leo
No problem :)