• 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 home page only

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 home page only

This topic is: not resolved

Tagged: going green, remove #header homepage

  • This topic has 6 replies, 4 voices, and was last updated 11 years, 9 months ago by JJGONZA.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • July 18, 2013 at 11:09 am #51322
    bluesteelesolutions
    Member

    I want to remove the entire header div from the home page. I tried this and it removed the header widget, but the title image is still there

    add_action('get_header', 'wpsites_remove_header');
    function wpsites_remove_header() {
    if (is_home()) {
    remove_action( 'genesis_header', 'genesis_do_header' );
    remove_action( 'genesis_site_title', 'genesis_seo_site_title' );
    remove_action( 'genesis_site_description', 'genesis_seo_site_description' );
    }
    }

    Site URL - http://steeledev.com/danzig/ (not my design, just moving a static html site to wordpress)
    Template: based on Going Green

    Thanks!


    Offering full service marketing solutions; print, marketing strategy, CRM, and (duh!) Genesis web design/development.
    Blue Steele Solutions

    http://steeledev.com/danzig
    July 18, 2013 at 11:39 am #51326
    Brad Dalton
    Participant

    Its because you have added your header image in your style.css file and not using the WordPress header uploader. Here's the code in your css file:

    #header {
        background: url("http://steeledev.com/danzig/wp-content/uploads/2013/07/logo1.jpg") no-repeat scroll 0 0 transparent;
    }
    

    To remove your header from your home page, try this for Genesis 2.0 HTML 5 themes:

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

    Or this for the old XHTML child themes

    .home #header {
    display: none;
    }
    

    Tutorials for StudioPress Themes.

    July 18, 2013 at 11:41 am #51327
    bluesteelesolutions
    Member

    Wow, I feel really silly now. Thanks Brad!


    Offering full service marketing solutions; print, marketing strategy, CRM, and (duh!) Genesis web design/development.
    Blue Steele Solutions

    July 18, 2013 at 11:44 am #51328
    Brad Dalton
    Participant

    There's different ways to do things, that's all.

    The PHP code here assumes you've added your header using the header option under Appearance.


    Tutorials for StudioPress Themes.

    July 18, 2013 at 11:46 am #51329
    bluesteelesolutions
    Member

    Ahh thanks for the clarification - first time I have had to do this with Genesis. Much thanks


    Offering full service marketing solutions; print, marketing strategy, CRM, and (duh!) Genesis web design/development.
    Blue Steele Solutions

    August 11, 2013 at 10:21 am #55640
    mates222
    Member

    New to Genesis and was facing the same problem. Thanks Brad.

    March 3, 2014 at 9:44 pm #93308
    JJGONZA
    Member

    BTW I just use it myself. Thanks
    Genius!

  • Author
    Posts
Viewing 7 posts - 1 through 7 (of 7 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