remove header completely

Community Forums Forums Design Tips and Tricks remove header completely

This topic is: not resolved

Tagged: 

This topic contains 6 replies, has 4 voices, and was last updated by  SoZo 4 months, 2 weeks ago.

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

    phamhung
    Participant
    Post count: 16

    I tried

    remove_action( ‘genesis_header’, ‘genesis_do_header’ );

    But when viewing source, I still see

    <div id=”header”><div class=”wrap”></div><!– end .wrap –></div><!–end #header–>

    How to remove it completely please?

    Thanks.

    #16363

    anitac
    Moderator
    Post count: 3058

    Depending on what theme you are using – look in the home.php file.


    Need customization services or other help? Visit me here: Cre8tiveDiva.com | Twitter: @thecre8tivediva
    Why Not Take The Challenge! – Help us answer some of the unanswered posts

    #16367

    phamhung
    Participant
    Post count: 16

    I am customizing Sample theme, and it doesn’t have home.php file.

    #16571

    braddalton
    Participant
    Post count: 3070

    This code only removes the header but not all elements.

    remove_action( 'genesis_header', 'genesis_do_header' );
    

    You can also remove the header right widget, site titles and description:

    remove_action( 'genesis_site_title', 'genesis_seo_site_title' );
    remove_action( 'genesis_site_description', 'genesis_seo_site_description' );
    unregister_sidebar( 'header-right' );
    

    WordPress Developer & Consultant
    Brad Dalton @ WP SitesClick Here to Get Genesis Child Theme Tips Delivered.

    #16576

    SoZo
    Moderator
    Post count: 1573

    You need to add this to remove the header and the divs

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

    John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography

    #16583

    phamhung
    Participant
    Post count: 16

    Thanks SoZo. Where can I learn more about those options please? I cannot find them out in Resources.

     

    #16584

    SoZo
    Moderator
    Post count: 1573

    The best place to look is in the Genesis files themselves. I’m not aware of anywhere that all the possible actions are detailed.


    John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography

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

You must be logged in to reply to this topic.