• 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

Show header only in Home Page

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 › Show header only in Home Page

This topic is: not resolved
  • This topic has 3 replies, 2 voices, and was last updated 9 years, 12 months ago by Porter.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • December 20, 2015 at 12:45 pm #174404
    caballoganador
    Member

    Hello,

    I would show my website header only in the home and in the other pages display the menu on the top. It is possible?

    The Website is: http://www.juliafarre.es

    Thank you

    http://www.juliafarre.es
    December 20, 2015 at 11:25 pm #174436
    Porter
    Participant

    This should do the trick, add it to your functions.php file:

    /** Remove header on all pages but home page. */
    add_action( 'genesis_header', 'site_home_remove_header', 5);
    function site_home_remove_header() {
      if(!is_home() || !is_front_page()){
        remove_action( 'genesis_header', 'genesis_do_header' );
      }
    }

    Buy me a beer? | Try DigitalOcean VPS Hosting

    December 21, 2015 at 2:41 am #174443
    caballoganador
    Member

    Where in functions.php should I add the code ? In the end? The truth is that I have a little afraid to modify functions php...
    Can I do it with css?

    December 21, 2015 at 7:46 am #174456
    Porter
    Participant

    You can put it anywhere in functions.php (I suggest the end, add a line of empty space, then paste that code at the bottom of the document), I promise it's WAY less scary than it looks. 99% of changes you make to your site happen in style.css and functions.php, so it's really recommended you get comfortable with both.

    If you insist on a css solution, this should work:

    .home .site-header {
        display: inline;
    }
    
    .site-header {
        display: none;
    }

    Buy me a beer? | Try DigitalOcean VPS Hosting

  • 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