Skip to content

Instantly share code, notes, and snippets.

@jamiemitchell
Last active April 16, 2019 14:43
Show Gist options
  • Save jamiemitchell/7078156 to your computer and use it in GitHub Desktop.
Save jamiemitchell/7078156 to your computer and use it in GitHub Desktop.
Remove default titles in Genesis
<?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