How to remove Page Titles on all landing pages in Genesis

Looking to remove entry titles on all static Pages that use the Landing Template in Genesis?

Just add the following in your child theme directory:

add_action( 'genesis_before_loop', 'custom_remove_page_title' );
/**
 * Remove Page Title on all landing pages.
 */
function custom_remove_page_title() {
    // if this is not a static Page using the Landing Template, abort.
    if ( ! is_page_template( 'page_landing.php' ) ) {
        return;
    }

    remove_action( 'genesis_entry_header', 'genesis_do_post_title' );
}
This site uses cookies to offer you a better browsing experience. By browsing this website, you agree to our use of cookies.