• 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 from homepage

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 from homepage

This topic is: not resolved
  • This topic has 3 replies, 2 voices, and was last updated 10 years, 4 months ago by Brad Dalton.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • July 24, 2015 at 5:16 pm #160371
    seanerin72
    Member

    Hello,

    my website: http://www.blackboarddreams.com

    As you can see, I have a header (image with the tree) including site title and tagline. Beneath the header, I have the primary nav menu. Finally, I have my slider beneath the primary nav menu. I would like to remove the header from the homepage only, but keep the site title and tagline. I would also like to move the primary nav menu below the slider. Using the following code I can remove the header from the homepage:

    add_action( 'genesis_before_header', 'wdm_remove_header_home' );

    function wdm_remove_header_home() {
    if ( ! is_front_page() ) {
    return;
    }

    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 );
    }

    Unfortunately, this code also removes the site title and tagline. How do I remove the header but keep the title and tagline? And how do I move the menu below the slider?

    Thank you.

    July 24, 2015 at 11:53 pm #160380
    Brad Dalton
    Participant

    The title and tagline are part of the header so when you remove the header, you remove all the header elements.

    I assume you want to remove the header image only from the front page?


    Tutorials for StudioPress Themes.

    July 25, 2015 at 1:39 am #160386
    seanerin72
    Member

    Hi Brad, thanks for responding. Yep, I only want to remove the header image from the front page.

    July 25, 2015 at 8:00 am #160419
    Brad Dalton
    Participant

    One solution you could try is to add your header image using PHP code with a conditional tag excluding the front page.

    if ( ! is_front_page() )
    

    Looks like you currently add it using CSS with the #header i.d .


    Tutorials for StudioPress Themes.

  • 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

© 2025 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