Forums
Home / Theme: GovPress / Hide Post Excerpt
(@daniell)
8 years, 2 months ago
Hello
im trying to hide post excerpts on this theme.
i tryed using:
.entry-content{ display: none}
but it also hides the content on the post itself.
Any sugestions!?
(@ohmycode)
Hello, you want to remove it from the home page? Could we have the url?
Try pasting this into your custom CSS injector (or child theme if you have created one):
.home #primary .entry-summary { display: none; }
Good luck ??
css injector!
did not change anything. Trying to remove form home page and also category listing pages.
Its localhosted website.
(@laranz)
Hi,
Try this Custom CSS in any Custom CSS plugin or in your child theme’s style.css,
.home .entry-content { display: none; }
or
.blog .entry-content { display: none; }
Regards,
For Category pages, you can use this CSS,
.archive .entry-content { display: none; }
.category .entry-content { display: none; }
IT worked, thanks!
Also its possible to have this behavior on front page also ? When showing last posts ?
Glad it works ??
This code will take care of the front page blog posts,