• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Remove Header on Specific Pages

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Remove Header on Specific Pages

This topic is: not resolved

Tagged: Remove header on specific pages

  • This topic has 3 replies, 3 voices, and was last updated 13 years, 7 months ago by Susan.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • December 23, 2012 at 10:16 am #7167
    Mack
    Member

    My Client wants me to remove the header on specific "Lifestyle Pink" pages.
    How can I achieve this requirement?

    Thanks in advance for any support you can offer to meet this requirement.

    Mack

     

    December 23, 2012 at 12:03 pm #7180
    Susan
    Moderator

    Try adding this to your stylesheet (replacing the "2" with your page ID):

    .page-id-2 #header { display: none; }

    December 23, 2012 at 1:12 pm #7192
    Brian Bourn
    Member

    You can create a page template called page-noheader.php and add it to your child theme folder and use the following in it:

    <?php
    /*
    Template Name: Page No Header
    */
    
    //***Add Custom Body Class**/
    add_filter( 'body_class', 'no_header_body_class' );
    function no_header_body_class( $classes ) {
       $classes[] = 'page-no-header';
       return $classes;
    }
    
    //***Remove Header**/
    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 );
    
    genesis();
    

    This will make it a selectable template from the page editor and add a body class so you can target it with CSS as things will probably need adjusting after you remove the header.


    Bourn Creative | bourncreative.com | Twitter

    December 23, 2012 at 1:22 pm #7195
    Susan
    Moderator

    Thanks for this suggestion, Brian! I agree about perhaps wanting to change things on those pages where a header is removed - before making my own suggestion, I tested it on my own test side, and I think the page needed something to replace the missing header!

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble