remove header completely

Community Forums Forums Design Tips and Tricks remove header completely

This topic is: resolved

Tagged: 

This topic contains 6 replies, has 4 voices, and was last updated by  SoZo 1 year, 5 months ago.

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

    phamhung
    Participant
    Post count: 28

    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
    Participant
    Post count: 6991

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


    Let me help you customize your theme, responsive header, Buddypress, Agentpress or technical issue!
    Visit me here: Cre8tiveDiva.com | Tweet Me! | Plus Me!
    When asking for help, please provide a link or screen shot showing your problem!

    #16367

    phamhung
    Participant
    Post count: 28

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

    #16571

    braddalton
    Participant
    Post count: 8804

    This code only removes the header but not all elements.
    [php]
    remove_action( ‘genesis_header’, ‘genesis_do_header’ );
    [/php]

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

    [php]
    remove_action( ‘genesis_site_title’, ‘genesis_seo_site_title’ );
    remove_action( ‘genesis_site_description’, ‘genesis_seo_site_description’ );
    unregister_sidebar( ‘header-right’ );
    [/php]


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #16576

    SoZo
    Moderator
    Post count: 1573

    You need to add this to remove the header and the divs
    [php]
    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 );[/php]


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

    #16583

    phamhung
    Participant
    Post count: 28

    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)

The topic ‘remove header completely’ is closed to new replies.