• 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 Padding on Landing Page Template

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 Padding on Landing Page Template

This topic is: not resolved

Tagged: Firebug, landingpage, stylesheet

  • This topic has 8 replies, 2 voices, and was last updated 11 years, 4 months ago by SMB-dev.
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • January 9, 2014 at 4:13 pm #84255
    CaseyKt2013
    Member

    Hello,

    I have a question about using the landing page template with the metro-pro theme. I don't want a big white area on top (where the header would normally be) - how can I get rid of it? This isn't normally how I would set up a site - but the page is temporary and I need to work with the design I've been given.

    Here is the link: http://dsadvice.webcopyresults.com

    Thanks!

    http://dsadvice.webcopyresults.com
    January 9, 2014 at 5:24 pm #84259
    SMB-dev
    Member

    You need to modify the style sheet.

    1. Open up the style.css in a text editor
    2. Find the <div class="site-container">
    3. Modify the Margin and Padding(s) to suite your taste.

    Margin Default is 32 px
    Top Padding Default is 36 px

    Reducing these (2) variables will remove the "white border" area at the top.

    If your using Firefox (install the Firebug plugin) then you can view this by Inspecting the Element and Layout of the Page
    This also lets you make adjustments to test w/o affecting your code.

    Hope this helps.


    “Life is Social” & “Social is the Lifeblood” of a Small Business Owner.

    January 9, 2014 at 5:30 pm #84260
    CaseyKt2013
    Member

    Let me try that again - I did try to reduce both to 2 px originally, but no luck…

    (Sorry, I should have spelled out the edits I had tried already).

    Let me see if I didn't save or something.

    January 9, 2014 at 5:34 pm #84261
    CaseyKt2013
    Member

    Here is the code:

    /* Site Containers
    --------------------------------------------- */

    .site-container {
    background-color: #fff;
    margin: 5px auto;
    margin: 3.2rem auto;
    max-width: 1140px;
    overflow: hidden;
    padding: 5px;
    padding: 3.6rem;
    }

    Wasn't sure if I needed to tweak the margin: 3.2rem auto and padding: 3.5rem as well?

    January 9, 2014 at 6:01 pm #84265
    SMB-dev
    Member

    OK... I see your issue.

    The Site container is Auto and that one line is controlling Top and Bottom Margins....which are both set to 3.2 REM (32 px)
    If your ok with adjusting both the same, then reduce that value.

    Otherwise: You may need to remove the Auto and set your Margins independent. Top, Bottom, Left Right.

    May need to adjust Padding REM the same way.

    Hope this helps.


    “Life is Social” & “Social is the Lifeblood” of a Small Business Owner.

    January 9, 2014 at 6:06 pm #84267
    CaseyKt2013
    Member

    I'm not sure I am following what you mean - can you please show how you would tweak it? (Am I only making changes to the code I provided above - or elsewhere? What values do you recommend I use and where?)

    Thanks!

    January 9, 2014 at 6:09 pm #84268
    CaseyKt2013
    Member

    Okay, I made adjustments and it helped - but I still have a narrow band of white on top of the image. Could that be controlled by styling the landing page itself?

    January 9, 2014 at 6:11 pm #84271
    CaseyKt2013
    Member

    Nevermind - caching issue - got it.

    Thanks!!!!!

    January 9, 2014 at 6:14 pm #84273
    SMB-dev
    Member

    Glad that fixed for you. Yeah the caching issue can catch you....it's bit me more times than I can count LOL


    “Life is Social” & “Social is the Lifeblood” of a Small Business Owner.

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