[Resolved] Page title above featured image only on first post

Home Forums Support [Resolved] Page title above featured image only on first post

Home Forums Support Page title above featured image only on first post

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1254322
    Jee

    How can I put the page title above the featured image only for the first post at the top for the homepage and category pages?

    #1254369
    Leo
    Staff
    Customer Support

    Hi there,

    Give this a shot:

    .featured-column .inside-article {
        display: flex;
        flex-direction: column;
    }
    .featured-column .inside-article .entry-header {
        order: -1;
    }

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

    Let me know 🙂

    #1254376
    Jee

    Thanks! Now how can I adjust the space between the date and the image and close the space up below the image so that the text is closer? (Just for the first post at the top.)

    #1254841
    David
    Staff
    Customer Support

    Hi there,

    try adding this CSS as well:

    .post-image-above-header .featured-column .inside-article div.post-image {
        margin-bottom: 0;
    }
    .featured-column .inside-article .entry-summary {
        margin-top: 0.5em;
    }
    #1255452
    Jee

    Just need one more tweak to put space between post date and image below.

    #1255455
    Jee

    Added padding in the code and it worked!
    Thanks!

    #1257414
    David
    Staff
    Customer Support

    Glad we could be of help

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.