Created
March 24, 2017 13:08
-
-
Save damiencarbery/0aeae4bd9fcae40bb81902b67ab68952 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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