Skip to content

Instantly share code, notes, and snippets.

@billerickson
Created March 24, 2018 00:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save billerickson/fa2e4838711a6abd72387be7c30d6a68 to your computer and use it in GitHub Desktop.
Save billerickson/fa2e4838711a6abd72387be7c30d6a68 to your computer and use it in GitHub Desktop.
<?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