Skip to content

Instantly share code, notes, and snippets.

@michelventura
Last active October 1, 2017 02:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michelventura/4d1e769c624f3cf0d66e4eca11249860 to your computer and use it in GitHub Desktop.
Save michelventura/4d1e769c624f3cf0d66e4eca11249860 to your computer and use it in GitHub Desktop.
Remove all single page title on static pages
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