This topic is: not resolved
- This topic has 0 replies, 1 voice, and was last updated 1 year, 2 months ago by .
Viewing 1 post (of 1 total)
Viewing 1 post (of 1 total)
- You must be logged in to reply to this topic.
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.
Community Forums › Forums › Retired StudioPress Themes › Add structural wrap to Genesis Sample 2.3.0
Tagged: header, Nav Primary, structural, wrap
I'm using Genesis Sample 2.3.0 (old I know but I like it) on a project and I want to add a structural wrap around the header and nav-primary so I can place a background img that spans both. Can anyone advise me on the code I need in my functions.php to achieve this? See my project theme at: https://graphicviolence.co.uk/workbook/
Something along the lines of this but with different hooks:
// Add div.wrap inside of div#inner
function child_before_content_sidebar_wrap() {
echo '<div class="new-wrap">';
}
add_action( 'genesis_before_content_sidebar_wrap', 'child_before_content_sidebar_wrap' );
function child_after_content_sidebar_wrap() {
echo '</div><!-- end .wrap -->';
}
add_action( 'genesis_after_content_sidebar_wrap', 'child_after_content_sidebar_wrap' );
© 2024 WPEngine, Inc.