Hide/Remove Blog post Excerpt On All Archive Pages
-
I need one CSS or a php function code to hide or remove the Blog post listing excerpt on all Archive pages.
Currently, I am using multiple codes like the one below to hide on different archive pages but I’m looking for one code that will do it on all the archive pages. Thanks.
/* Remove excerpts from category pages */
body.category .entry-content {
display: none !important;
}/* Remove excerpts from blog archive page */
body.blog .entry-content {
display: none !important;
}/* Remove excerpts from author archive pages */
.archive .entry-content p:not(.read-more-container) {
display: none !important;
}
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Hide/Remove Blog post Excerpt On All Archive Pages’ is closed to new replies.