-
-
Save billerickson/fa2e4838711a6abd72387be7c30d6a68 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 | |
/** | |
* Page Header | |
* | |
*/ | |
function be_page_header() { | |
if( ! is_page() ) | |
return; | |
// Remove default page header | |
remove_action( 'genesis_entry_header', 'genesis_do_post_title' ); | |
// Add our custom page header | |
echo '<div class="page-header"><div class="wrap">'; | |
genesis_do_post_title(); | |
echo '</div></div>'; | |
} | |
add_action( 'genesis_after_header', 'be_page_header' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment