[Resolved] Header Display

Home Forums Support [Resolved] Header Display

Home Forums Support Header Display

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #175449
    Dwight

    How do I get my header (under background images) to show correctly on desktop and mobile?
    http://www.niaimanirocks.com/

    • This topic was modified 8 years, 1 month ago by Dwight.
    #175519
    Tom
    Lead Developer
    Lead Developer

    Instead of uploading it as a background image, upload it as a header in “Customize > Site Identity”.

    Then if you want it to go full width, add this CSS:

    .inside-header.grid-container {
        max-width: 100%;
    }
    
    .inside-header img,
    .site-logo {
        width: 100%;
    }

    Adding CSS: https://generatepress.com/knowledgebase/adding-css/

    • This reply was modified 8 years, 1 month ago by Tom.
    #175526
    Dwight

    What’s the best size for the header image?
    What’s the best size for the body background image?

    Thanks!

    • This reply was modified 8 years, 1 month ago by Dwight.
    • This reply was modified 8 years, 1 month ago by Dwight.
    #175529
    Tom
    Lead Developer
    Lead Developer

    Depends on how big you want the header image – it can be tiny or really big, it all has to do with your design.

    If you want it to span the entire width of your page, it should be around 1500px I’d say.

    For the background image, I suggest using images that don’t have any text etc.. as it won’t show on all screens due to aspect ratio changes. Background images should be designs/patterns, and again can be as large or a small as your design needs ๐Ÿ™‚

    #175533
    Dwight

    There’s only Logo and Site Icon under Site Identity.

    The header is 1500px wide and after putting it under site identity/logo and putting the CSS, it still didn’t expand full width.

    #175537
    Tom
    Lead Developer
    Lead Developer

    I adjusted the CSS above: https://generatepress.com/forums/topic/header-display/#post-175519

    Then to remove the spacing around the header, use the Spacing add-on (if you have it) in “Customize > Element Spacing”.

    #175538
    Dwight

    Perfect! Thanks a million…love your theme!

    #175543
    Tom
    Lead Developer
    Lead Developer

    You’re welcome ๐Ÿ™‚ Thanks for using it!

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