Looking for a way to remove entry header (having the title) on all static Pages in Genesis without a plugin?
Just add the following in child theme’s functions.php
:
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 );
}