Created
November 21, 2016 10:35
-
-
Save fernandiez/7a3e86b55a840406556536a16c3eca76 to your computer and use it in GitHub Desktop.
Remove post titles from home page in Genesis Framework
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 post titles from home page in Genesis Framework | |
//* http://my.studiopress.com/snippets/entry-header/ | |
//* http://www.billerickson.net/genesis-h1-front-page/ | |
//* http://wpsites.net/web-design/remove-titles-specific-conditions/ | |
add_action( 'get_header', 'remove_titles_home_page' ); | |
function remove_titles_home_page() { | |
if ( is_front_page() ) { | |
//* Remove the entry title (requires HTML5 theme support) | |
remove_action( 'genesis_entry_header', 'genesis_do_post_title' ); | |
//* 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 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