• 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

Magazine Pro Theme – Changing Padding Around Header Just 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 › Magazine Pro Theme – Changing Padding Around Header Just on Mobile

This topic is: resolved

Tagged: css, header, magazine pro theme, mobile, padding, white space

  • This topic has 7 replies, 2 voices, and was last updated 8 years, 12 months ago by bluebird.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • January 21, 2017 at 10:39 am #199764
    valhalla202
    Member

    Hi forum,

    For my website (www.hiddendominion.com) I have extended the header (using CSS) to 1140x170. I think the original size is somewhere around 315x100.

    The website looks fine on desktop. However, on mobile the padding and extra white space above and below the header is horrendous. It takes up practically the entire first view.

    So what I am looking to do is delete the padding and "clickable" white space above and below the header, just on mobile.

    I know I'm working in media queries for this... But unsure of what exact code to use. Any suggestions? Thanks!!

    http://www.hiddendominion.com
    January 21, 2017 at 12:31 pm #199769
    bluebird
    Member

    Hi @vallhalla,

    Try getting adjusting these properties in mobile view with media queries:

    .header-image .site-title a {
         ////////get rid of the min-height property
    
    }
    
    .header-image .site-header .title-area{
    ////lessen the padding of the top/bottom///
      padding: 20px 0px;
    }
    
    .primary-nav .site-header {
      ///adjust margin-top according to view-port size//////
      margin-top: -20px;
    }
    
    

    See if that helps:-)

    Juliette

    January 21, 2017 at 4:23 pm #199773
    valhalla202
    Member

    Thanks Juliette!

    Do you happen to know what media size I should put it under? like @media only max width: 1023px or a lower one?

    Sorry for the confusion!

    January 21, 2017 at 8:16 pm #199774
    bluebird
    Member

    You're welcome Valhalla!

    If everything else seems to be sitting well at the tablet and desktop view breakpoints, then (assuming that this is not a mobile first design) I would try using a max-width of 414px. That should cover most mobile phones.

    Cheers,

    Juliette

    January 21, 2017 at 10:19 pm #199777
    valhalla202
    Member

    So I took your recommendation and it worked awesome thus far! Strictly on mobile and I got rid of the padding and the top white space.

    I have one follow-up question - So I was able to raise the picture close to the top navigation bar as recommended here:

    .primary-nav .site-header {
      ///adjust margin-top according to view-port size//////
      margin-top: -20px;

    However, I can't seem to figure out how to now raise the secondary navigation to be up toward the header image.

    I tried this:

    .site-header .secondary-nav {
    		margin-top: -100px ;

    And changed the margins and the various nav-secondary. Also tried putting it as ".secondary-nav .site-header" and even just trying "secondary nav" but can't seem to get that dang thing to move up there!

    Any ideas? Also - thanks so much for the other help, like I said worked like a charm! 😀

    January 22, 2017 at 8:12 pm #199816
    bluebird
    Member

    I think that you forgot to get rid of the header-image .site-title a min-height property:-)

    January 22, 2017 at 10:52 pm #199826
    valhalla202
    Member

    Ahh I left out the "a" after the code. Right after I put that in it worked perfect.

    You're a miracle worker! It looks awesome. Thanks so much!

    January 22, 2017 at 10:56 pm #199827
    bluebird
    Member

    You're welcome! I like to help out when I can.

    Cheers:-)

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

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