Remove #header on home page only

Community Forums Forums Design Tips and Tricks Remove #header on home page only

This topic is: not resolved

This topic contains 6 replies, has 4 voices, and was last updated by  JJGONZA 5 months, 3 weeks ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #51322

    bluesteelesolutions
    Participant
    Post count: 29

    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
    #51326

    braddalton
    Participant
    Post count: 9232

    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:
    [css]
    #header {
    background: url("http://steeledev.com/danzig/wp-content/uploads/2013/07/logo1.jpg&quot ;) no-repeat scroll 0 0 transparent;
    }
    [/css]

    To remove your header from your home page, try this for Genesis 2.0 HTML 5 themes:
    [css]
    .home .site-header {
    display: none;
    }
    [/css]

    Or this for the old XHTML child themes

    [css]
    .home #header {
    display: none;
    }
    [/css]


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #51327

    bluesteelesolutions
    Participant
    Post count: 29

    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

    #51328

    braddalton
    Participant
    Post count: 9232

    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.


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #51329

    bluesteelesolutions
    Participant
    Post count: 29

    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

    #55640

    mates222
    Participant
    Post count: 2

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

    #93308

    JJGONZA
    Member
    Post count: 2

    BTW I just use it myself. Thanks
    Genius!

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.