• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
Appfinite

Appfinite

Premium WordPress Themes for The Genesis Framework

  • Themes
  • Blog
  • Tutorials and Resources
  • Forums
  • Contact Us

Reply To: Header Color

Home › Community Forums › Legacy Theme Support › Header Color › Reply To: Header Color

December 24, 2012 at 11:11 pm #2181
Eric
Customer

The background feature is actually a WordPress feature (not really a Legacy feature)…..and its for the entire background (or “body”) of your site. There is no background “color” option specifically for the Header alone, you can only add a background image and change the text color of the header.

In another thread, Wes recommended adding the following code to your functions.php file –


/** Before Header Wrap */
add_action('genesis_before_header', 'before_header_wrap');
function before_header_wrap() {
echo '<div class="head-wrap">';
}
/** After Header Wrap */
add_action('genesis_after_header', 'before_after_wrap');
function before_after_wrap() {
echo '</div>';
}

Then add this to your style.css file –


.head-wrap {
background: #ff0000;
}

You can change the background color to whatever you want.

The #header is only 960px width, so if you add color it won’t fill up the entire space and you would have white on the sides of the header. This is why you should add the above code since it will add a “wrap” behind the header making the background color full width.


I create awesome sites for awesome people! Contact me if interested – ericsanchez1585@gmail.com

Primary Sidebar

Search Forums

Affiliate Program

Looking to earn some money? Join our Affiliate program and earn 35% of every sale you refer. Top referrers earn 40-50%.

Join Now →

The Genesis Framework

All of our themes are designed for the Genesis Framework. You will need to purchase Genesis in order to use any of our themes.

Purchase Genesis

Hire a Web Developer

Need help setting up or customizing your website?

Contact Us →

Search Full Site

  • Buy Genesis!
  • Shopping Cart
  • Themes
  • My Account
  • Support Forums
  • Tutorials and Resources
  • Privacy Policy
  • Contact Us
  • Follow Us on Twitter

Copyright © 2023 · Appfinite · Built With The Genesis Framework