Created
January 28, 2020 16:53
-
-
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
This file contains hidden or 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
/** | |
* 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