• 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

Possible to remove horizontal band at top and bottom of Genesis Sample theme?

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 › Possible to remove horizontal band at top and bottom of Genesis Sample theme?

This topic is: not resolved

Tagged: .site-inner, css, Gutenberg

  • This topic has 4 replies, 2 voices, and was last updated 6 years, 7 months ago by Doug.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • May 13, 2019 at 11:36 am #491141
    Doug
    Participant

    I'm using Gutenberg with the latest version of WP, and the Genesis Sample theme.

    At the very top and bottom of my site, above the first and below the last block, there's a band about 70p wide in the body background color.

    I'm curious how difficult it might be to remove this.

    In Inspect, it's labeled

    <div class="site-inner" style="margin-top: 70px;">

    Using Inspect I've changed the "margin-top" value to "0", to no effect.

    So I'm wondering what controls that band and how it might be modified.

    thanks
    doug

    https://apparentinsights.com/
    May 13, 2019 at 2:22 pm #491143
    AnitaC
    Keymaster

    I am not sure why it's there but if you put the !important statement along with your 0, it will remove it.


    Need help with customization or troubleshooting? Reach out to me.

    May 13, 2019 at 3:46 pm #491145
    Doug
    Participant

    Thanks, Anita.

    I tried putting the Div content in, but it didn't do anything.

    However, back in Inspect, I found something that worked. Changing this 70 to 0.

    element.style {
        margin-top: 70px;
    }

    Here's a screen of me trying that and it working:
    https://drive.google.com/file/d/1xNB3DXCm40olYbgaOoePSolgiCm2WYHz/view?usp=sharing

    However, when I did that in Customer > Additional CSS, it didn't do anything.

    So I also tried ...

    element.style {
        margin-top: 0px !important;
    }
    .element.style {
        margin-top: 0px !important;
    }

    and

    #element.style {
        margin-top: 0px !important;
    }

    I'm not too familiar with how classes work, and the differences between using . or #. Do you know what I'm doing wrong with that code?

    thanks
    doug

    May 13, 2019 at 4:04 pm #491146
    AnitaC
    Keymaster

    The .site-inner has that 70px coded somewhere. To overrule it, you need to do it like I have it here.

    .site-inner {
        margin-top: 0 !important;
    }

    Need help with customization or troubleshooting? Reach out to me.

    May 13, 2019 at 4:18 pm #491147
    Doug
    Participant

    Thanks, that worked!

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