Skip to content

Instantly share code, notes, and snippets.

@jacobwise
Created April 30, 2015 15:15
Show Gist options
  • Save jacobwise/1870bf97a5c639969ab7 to your computer and use it in GitHub Desktop.
Save jacobwise/1870bf97a5c639969ab7 to your computer and use it in GitHub Desktop.
Remove Entry Header Genesis on front page
<?php
add_action( 'genesis_before', 'prefix_remove_entry_header' );
/**
* Remove Entry Header
*/
function prefix_remove_entry_header()
{
if ( ! is_front_page() ) { return; }
//* 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' );
//* Remove the entry meta in the entry header (requires HTML5 theme support)
remove_action( 'genesis_entry_header', 'genesis_post_info', 12 );
//* Remove the post format image (requires HTML5 theme support)
remove_action( 'genesis_entry_header', 'genesis_do_post_format_image', 4 );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment