Skip to content

Instantly share code, notes, and snippets.

@timothyjensen
Last active June 4, 2019 19:22
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
<?php
add_action( 'before_genesis_site-inner_wrap', 'do_full_width_page_header' );
/**
* Adds a div with a background image before the site-inner wrap.
*/
function do_full_width_page_header() {
printf( '<div class="full-width-page-header" style="background: url(\'%s\');"></div>',
wp_get_attachment_image_url( 2623, 'full' )
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment