[Resolved] How to customize Single Post header

Home Forums Support [Resolved] How to customize Single Post header

Home Forums Support How to customize Single Post header

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #1599348
    Dave

    I am looking at making my single post headers like this: https://www.saltinourhair.com/travel-blog/best-places-to-travel/
    I am wondering if this is possible with the header elements and some CSS or it is something more involved.
    Any help would be appreciated.
    It would have to stack on mobile as well.

    cheers,

    Dave

    #1599679
    David
    Staff
    Customer Support

    Hi there,

    Check this topic:

    https://generatepress.com/forums/topic/blog-post-makeover/#post-1543836

    Its something very similar ie. a 2 column header element.

    #1600067
    Dave

    Thanks David. That definitely helped. I am just haveing a little issue styling the excerpt with the padding of the content on mobile. I want the padding to be the same but can’t seem to figure out how to do this.

    Cheers,

    Dave

    #1600110
    David
    Staff
    Customer Support

    Do you want to just add extra padding to the Excerpt ? Or have the whole hero align with the Content below it ?

    #1600114
    Dave

    The whole hero on mobile would work great and probably be easier.
    Thanks.

    Dave

    #1600118
    Dave

    Also is it possible to make the container 40% for the excerpt and title and 60% for the image on desktop?

    Cheers,

    Dave

    #1600202
    Leo
    Staff
    Customer Support
    #1600618
    Dave

    Thanks Leo. Any suggestion on the first question of how to add padding to the excerpt on mobile
    Cheers,

    Dave

    #1600913
    David
    Staff
    Customer Support

    Try this CSS:

    @media(max-width: 768px) {
        .page-hero-excerpt {
            padding: 20px 20px 20px 20px;
        }
    }

    I left the padding as all values so you can adjust Top, Right, Bottom, Left individually.

    #1600924
    Dave

    Perfect. Thanks David.

    cheers,

    Dave

    #1600928
    David
    Staff
    Customer Support

    You’re welcome

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