Last active
April 16, 2019 14:43
-
-
Save jamiemitchell/7078156 to your computer and use it in GitHub Desktop.
Remove default titles in Genesis
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
<?php | |
/* Remove default titles | |
------------------------------------------------------------ */ | |
add_action( 'get_header', 'child_remove_page_titles' ); | |
function child_remove_page_titles() { | |
if ( is_page() && ! is_page_template( 'page_blog.php') || $post->post_parent ) { | |
remove_action( 'genesis_entry_header', 'genesis_entry_header_markup_open', 5 ); | |
remove_action( 'genesis_entry_header', 'genesis_entry_header_markup_close', 15 ); | |
remove_action( 'genesis_entry_header', 'genesis_do_post_title' ); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment