- This topic has 1 reply, 2 voices, and was last updated 10 years ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
Home › Community Forums › Optimal Theme Support › Header Background Question
Tagged: theme header
Hey Wes,
On this page http://www.studiopress.com/support/showthread.php?t=86885&highlight=header+background and it worked great for the legacy theme but not the optimal theme, which is the one I think I’ll end up using.
This bit of code is shown for a full header wrap – First add the following to functions.php
/** 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 to style.css
.head-wrap {
background: #d2d1d0;
}
You actually wouldn’t need to add the above code to the Optimal theme because its already in your functions.php file. If you need to change the header background, in this case you would need to look for and change “.head-wrap” in your style.css file