No Header Footer Genesis Template
Below is the code to create a Genesis template with no default header or footer elements, perfect to slot in to a page builder page.
Add it in your child theme and add any other CPT names in the Template Post Type line, the option to choose it will be under the Page attributes meta box under the template dropdown.
<?php /* Template Name:No Header Footer Template Template Post Type: post, page, portfolio, event */ //* Remove site header elements remove_action( 'genesis_header', 'genesis_header_markup_open', 5 ); remove_action( 'genesis_header', 'genesis_do_header' ); remove_action( 'genesis_header', 'genesis_header_markup_close', 15 ); //* Remove navigation remove_theme_support( 'genesis-menus' ); //* Remove breadcrumbs remove_action( 'genesis_before_loop', 'genesis_do_breadcrumbs' ); //* Remove site footer widgets remove_theme_support( 'genesis-footer-widgets' ); //* Remove site footer elements remove_action( 'genesis_footer', 'genesis_footer_markup_open', 5 ); remove_action( 'genesis_footer', 'genesis_do_footer' ); remove_action( 'genesis_footer', 'genesis_footer_markup_close', 15 ); genesis();