Skip to content

Instantly share code, notes, and snippets.

@timothyjensen
Last active June 4, 2019 19:22
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timothyjensen/a3110be71dfd952dd0389a42caf6a475 to your computer and use it in GitHub Desktop.
Save timothyjensen/a3110be71dfd952dd0389a42caf6a475 to your computer and use it in GitHub Desktop.
<?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