Last active
October 1, 2017 02:23
-
-
Save michelventura/4d1e769c624f3cf0d66e4eca11249860 to your computer and use it in GitHub Desktop.
Remove all single page title on static pages
This file contains 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
add_action( 'genesis_before_entry', 'custom_remove_titles' ); | |
/** | |
* Remove entry header on static Pages. | |
*/ | |
function custom_remove_titles() { | |
// if we are not on a static Page, abort. | |
if ( ! is_page() ) { | |
return; | |
} | |
remove_action( 'genesis_entry_header', 'genesis_entry_header_markup_open', 5 ); | |
remove_action( 'genesis_entry_header', 'genesis_do_post_title' ); | |
remove_action( 'genesis_entry_header', 'genesis_entry_header_markup_close', 15 ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment