• 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

Extend Header Background in Modern Portfolio

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 › Extend Header Background in Modern Portfolio

This topic is: resolved

Tagged: background, header

  • This topic has 3 replies, 2 voices, and was last updated 10 years ago by Hard Boiled Greg.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • February 27, 2013 at 8:13 am #23086
    gtappend
    Member

    I am trying to re-design my website using the new Modern Portfolio theme.

    I would like the header background to be continuous across the entire width of the screen, as the footer width is, but no matter where I put the colour code into the stylesheet it gets ignored.

    Has anyone else managed to do this?  Or can anyone let me know which CSS code I'm overlooking?

    Here's the site: http://www.tappenden.de/

    February 27, 2013 at 10:54 am #23116
    Hard Boiled Greg
    Member

    Hi gtappend,

    The WordPress custom header feature can be frustrating. Add the following to your #header rule:

    background-color: #fff500 !important;
    background-position: center !important;
    max-width: 100%;

    Let me know how that works out for you.

    Take care,

    Hard Boiled Greg


    Website: Hard Boiled Greg Twitter: @hbgreg

    February 27, 2013 at 11:48 am #23130
    gtappend
    Member

    Hi Hard Boiled Greg,

    thanks - that works!  I must have been almost there at one point today, but missed off the !important.

    The only thing is, that the background image for the header gets shifted slightly to the left as a result.  But I guess I can fix that by moving the text in the image slightly if there isn't a CSS solution.

    February 27, 2013 at 11:54 am #23133
    Hard Boiled Greg
    Member

    Hi gtappend,

    Using the "center" value for your background position will ensure the header is centered at all browser widths.

    You would be best to edit the image so the text is centered within it as well.

    Take care,

    HBG


    Website: Hard Boiled Greg Twitter: @hbgreg

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

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