• 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

Remove white space above/below 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 › Remove white space above/below header on mobile

This topic is: not resolved

Tagged: css, header, lifestyle Pro, mobile, responsiveness

  • This topic has 2 replies, 2 voices, and was last updated 8 years, 3 months ago by PassionsAndPlaces.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • March 27, 2017 at 9:55 pm #203937
    PassionsAndPlaces
    Member

    Hi all,

    I'm using Lifestyle Pro for my blog, and I made a couple small changes to increase the height and width of the header image (changed height to 300 and width 1140 in functions.php and changed padding to 0 and min-height to 300 in style.css).

    It looks great on desktop, but there's a ton of white space above and below the header image on mobile. Also on a tablet, the navigation bar gets messed up (which you can see in this screenshot).

    Is anyone able to help? I've spent ages trying to figure this out, and nothing has worked!

    Thank you!

    http://www.passionsandplaces.com
    March 28, 2017 at 4:32 am #203943
    Victor Font
    Moderator

    Use a mobile test site like http://semalt.design/. Use your browser's inspect tool and adjust the CSS for the media queries to your liking.


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    March 29, 2017 at 9:30 pm #204027
    PassionsAndPlaces
    Member

    That site is great, thank you! I'm looking at the media queries in Style.css. Each device/size would need custom settings, is that right? My current code has sections for max-width of 1139px, 1023px, and 767px. Also, is this the line that would need to change to remove the white space (this code currently only appears under the section for max-width of 1023px)?
    .site-header {
    padding: 20px 0;
    }

    Thank you!

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 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

© 2025 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