Skip to content

Instantly share code, notes, and snippets.

@jacobwise
Last active August 29, 2015 14:01
Show Gist options
  • Save jacobwise/6c15a2f38603d7272947 to your computer and use it in GitHub Desktop.
Save jacobwise/6c15a2f38603d7272947 to your computer and use it in GitHub Desktop.
Removes the Genesis entry header from the front page and moves it outside of the entry on all other pages.
//* Remove the entry header markup (requires HTML5 theme support)
remove_action( 'genesis_entry_header', 'genesis_entry_header_markup_open', 5 );
remove_action( 'genesis_entry_header', 'genesis_entry_header_markup_close', 15 );
//* Remove the entry title (requires HTML5 theme support)
remove_action( 'genesis_entry_header', 'genesis_do_post_title' );
//* Add the entry header markup and entry title before the content on all pages except the front page
add_action( 'genesis_before_content', 'jw_add_entry_header' );
function jw_add_entry_header()
{
if (is_front_page()) {
return;
}
genesis_entry_header_markup_open();
genesis_do_post_title();
genesis_entry_header_markup_close();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment