Remove Genesis Header and Footer Content

Removing the Genesis Header and Footer areas can be accomplished with the following code which removes not only the Genesis header and footer areas but also removes the menu and breadcrumb and footer widgets content…

//* 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 );

You could create a template of this for landing style pages and have it available via the page/post template dropdown.

2 Comments

  1. Alex on December 26, 2019 at 7:18 pm

    Thanks for this awesome content!

    I wan’t to disable the genesis menus and this code doesn’t work :(

    //* Remove navigation
    remove_theme_support( ‘genesis-menus’ );

    Please help me!

    • Miyap on July 31, 2023 at 9:21 am

      tame remove_theme_support( ‘genesis-menus’ ) Put this code in the init action Like :
      add_action( ‘init’, ‘wc_remove_action_headers_footer’, 11 );
      function wc_remove_action_headers_footer(){
      remove_theme_support( ‘genesis-menus’ );
      }
      This way your work will do… :)

Leave all Comment