Skip to content

Instantly share code, notes, and snippets.

@srdjan-m
Created January 28, 2020 16:53
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 srdjan-m/03c3238387bd1c6eca7f3d71adf1e369 to your computer and use it in GitHub Desktop.
Save srdjan-m/03c3238387bd1c6eca7f3d71adf1e369 to your computer and use it in GitHub Desktop.
genesis: remove Entry Header Genesis on front page https://gist.github.com/jacobwise/1870bf97a5c639969ab7
/**
* 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 );
}
add_action( 'genesis_before', 'prefix_remove_entry_header' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment