[Resolved] Hiding post excerpt in archive view with element

Home Forums Support Hiding post excerpt in archive view with element

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1221114
    Michael

    I have a lot of posts with youtube videos as their content, when I look at the category view. I get the full youtube video per post. I’d like to be able to exclude this category from showing the post excerpt. The rest of my categories I’d still like to show excerpts.

    Can’t seem to find a way to do it with elements, or maybe I’m doing it the wrong way.

    Can you help?

    #1221419
    Leo
    Staff
    Customer Support

    Hi there,

    Give this CSS a shot:

    body.archive.category-brad-stefanov .entry-content {
        display: none;
    }

    Adding CSS: https://docs.generatepress.com/article/adding-css/

    Let me know if this helps 🙂

    #1221793
    Michael

    Thanks Leo, didn’t work for me, the videos are still showing.

    #1221799
    Michael

    Got it working, ignore the above.. thanks (I’d changed categories since I posted, updated the CSS to match the new category and now works).

    #1222406
    Leo
    Staff
    Customer Support
Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.