• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

White space under header on mobile

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › White space under header on mobile

This topic is: not resolved

Tagged: header image, Spacing on mobile

  • This topic has 3 replies, 2 voices, and was last updated 5 years, 10 months ago by ChristineLeiser.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • July 19, 2017 at 11:09 am #209299
    ChristineLeiser
    Participant

    I'm using the Brunch Pro theme and I've run into an issue with the space under the header - only on mobile. I can't find a bottom margin setting in the CSS that corresponds to that area and I'm really stuck. It's fine on the desktop version... Thank you!

    http://mbstikihut.com
    July 19, 2017 at 4:53 pm #209309
    PyramidWeb
    Member

    Hi Christine,
    The space under the header is not a margin - it is the height of the area itself.

    In your "style.css", the height is set to a fixed value of 488px (see below). For the desktop version, this height looks fine; for the mobile version with a much smaller width, though, a height of 488px is too much, hence the white space under the header. (The smaller the width the heigher this area appears in contrast - just change the width of your browser window and see what happens.)

    .header-image .site-title > a {
        background-size: contain;
        display: block;
        height: 488px;
        margin: 10px auto;
        max-width: 1500px;
        text-indent: -9999px;
    }
    

    A "quick-and-dirty" solution would be to decrease the height for smaller widths in your media queries.

    Hope this helps.

    July 20, 2017 at 1:26 pm #209343
    ChristineLeiser
    Participant

    Thank you. I'm really struggling with exactly how and where to do that within the media queries. It's really only a problem on the mobile (phone screens), tablets are fine. So I assume that I'm working with "@media only screen and (max-width: 420px)" - I just don't see what I have to adjust within that code.

    July 20, 2017 at 4:35 pm #209351
    ChristineLeiser
    Participant

    I figured it out. Thank you! If someone is having this issue, I commented out the size in the .css file and then added this to every media query and adjusted accordingly:

    }
    .header-image .title-area, .header-image .site-title, .header-image .site-title a {
    min-height: 200px; /* change this in every screen size*/
    }
  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble