• Resolved Manny

    (@mannyo)


    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;
    }

    • This topic was modified 1 year, 8 months ago by Manny.
Viewing 3 replies - 1 through 3 (of 3 total)
  • I need one CSS or a php function code to hide or remove the Blog post listing excerpt on all Archive pages.

    Hi @mannyo you can remove post excerpts throughout the site using the CSS code below.

    .post-inner {
        display: none;
    }
    Thread Starter Manny

    (@mannyo)

    Thanks,

    However, that’s not the correct css.

    Please as much as I appreciate the help, please know what you are giving out here because that is just a code that nukes the entire content on your posts. If I didn’t know a little about this I will add it and will hide all my content.

    Hey @mannyo, this CSS should do the trick:

    .archive .post .entry-content {
      display: none;
    }
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.