[Support request] How to create a full-screen hero header for homepage?

Home Forums Support [Support request] How to create a full-screen hero header for homepage?

Home Forums Support How to create a full-screen hero header for homepage?

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1094196
    Johanna

    So I built a new site have want to create a section with a big background image (almost fullscreen.

    Here’s the link to my new site: http://vietguides.org/

    Basically, I added a section with a background image and I now want to make it fullscreen (increase size). How do I do this?

    I’ve done this before for my old site: http://www.dherealmark.com but not sure how to do it now.

    #1094403
    David
    Staff
    Customer Support

    Hi there,

    Header Elements are the best way to create a full width hero at the top of the page:

    https://docs.generatepress.com/article/header-element-overview/

    With Sections you would need to increase the top/bottom padding of the Section to make it taller ( same applies to the Header Element).
    If you want it to display full height then edit the Section > Settings > Custom Classes field add fullheight-section

    Then add this CSS:

    .fullheight-section {
        min-height:  100vh;
    }
    #1097589
    Johanna

    Okay, I did exactly that with display rules set to appear on my home page, but nothing works. Am I doing something wrong?

    Recording of my backend: https://drive.google.com/file/d/1XN7EW_XrS3PFBzaONwOc1_57ikdAMgeF/view

    #1097823
    David
    Staff
    Customer Support

    For the Home Page you must select the Front Page for your Display Rules.

    #1098311
    Johanna
    #1098519
    David
    Staff
    Customer Support

    You have a Header Element already assigned to the Front Page or the Entire site. Which contains your Google Analtyics script. You should remove this Header Element and place your GA script using a Hook Element instead.

    There can only be one Header Element assigned to any give place. So fix the above then you should see your header element appear – make sure you give the Header Element some top and bottom padding as well.

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