• 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

Header Isn't Centered

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 › Header Isn't Centered

This topic is: not resolved

Tagged: center, header

  • This topic has 9 replies, 2 voices, and was last updated 12 years, 6 months ago by rfmeier.
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • February 7, 2014 at 9:42 pm #89293
    Brenda
    Member

    My header is no longer centered. It's aligning to the left.

    http://www.triplebraidedlife.com
    February 8, 2014 at 8:44 am #89337
    rfmeier
    Member

    Brenda,

    It seems the header position is off when you upload a header in Genesis. You will have to override the centering within the style.css file background-position: center center !important; . Full code below;

    #header {
         height: 238px;
         background-color: #FFF;
         background-position: center center !important;
    }

    I hope this helps.


    Ryan Meier – Twitter

    February 14, 2014 at 9:26 pm #90424
    Brenda
    Member

    Ryan, thank you for your help, but your suggestion didn't work. I did something to it a few weeks ago when I was trying to make it full width.

    I put the code you suggested under the "Header" section int he style.css, but nothing changed.

    Any other suggestions?

    February 14, 2014 at 9:48 pm #90428
    rfmeier
    Member

    Brenda,

    Are you using the custom header from the theme settings? That puts in css that is hard to override. You could always center the #header element.

    #header{
        max-width: 940px;
        margin: 0 auto;
    }

    Ryan Meier – Twitter

    February 16, 2014 at 11:35 am #90615
    Brenda
    Member

    I just went to my site, and it works now! I guess the first suggestion took some time to show up. Thank you for your time and help!!

    February 16, 2014 at 12:07 pm #90619
    Brenda
    Member

    Actually, it didn't work. I tried a different header and that's what I'm seeing. The old header is still not centered. I will try your second suggestion. Thank you!

    February 16, 2014 at 5:11 pm #90663
    rfmeier
    Member

    Make sure to turn off your caching when you do any css updates. Even with the cache plugin turned off, your css could still be browser cached preventing you from seeing any changes.


    Ryan Meier – Twitter

    February 16, 2014 at 5:13 pm #90664
    rfmeier
    Member

    Also, for the first css I provided you, make sure that code is after any other header related css rules or else it will not override existing styles properly.


    Ryan Meier – Twitter

    February 19, 2014 at 1:19 pm #91247
    Brenda
    Member

    OK, I don't think I know how to turn off caching besides the plugin.

    I put the code under Appearance: Editor: Header. I put it underneath the other code under header.

    It's still not working. 🙁

    February 19, 2014 at 7:58 pm #91314
    rfmeier
    Member

    I think your style.css is being minified by a plugin or some other source, which is probably causing a cache. This would prevent changes from appearing. Make sure you have the !important include in background-position: center center !important; so the changes will override the header image style rules.


    Ryan Meier – Twitter

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