Skip to content

Instantly share code, notes, and snippets.

@damiencarbery
Created March 24, 2017 13:08
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save damiencarbery/0aeae4bd9fcae40bb81902b67ab68952 to your computer and use it in GitHub Desktop.
Save damiencarbery/0aeae4bd9fcae40bb81902b67ab68952 to your computer and use it in GitHub Desktop.
<?php
add_filter( ‘genesis_structural_wrap-header’, ‘do_full_width_page_header, 10, 2 );
function do_full_width_page_header( $output, $original_output ) {
return sprintf( '<div class="full-width-page-header" style="background: url(\'%s\');"></div>',
wp_get_attachment_image_url( 2623, ‘full’ )
) . $output;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment