• 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

Outreach Pro: remove header on homepage 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 › Outreach Pro: remove header on homepage only?

This topic is: not resolved

Tagged: header, homepage, outreach, remove

  • This topic has 3 replies, 2 voices, and was last updated 10 years, 6 months ago by styzer.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • October 30, 2014 at 2:20 pm #129931
    styzer
    Participant

    Hi,

    I installed a slider on my client's homepage, and the client would prefer that the header not be there too. I searched the forum and tried a few ideas I found, but nothing worked either as CSS, in Genesis Settings or functions.php. I'm sure there is a way to do this, but I ran out of ideas.

    How do you hide the header ONLY for the homepage in Outreach Pro? The menu should stay, though.

    And then, is it possible to move that menu underneath the slider? So it would be like on the homepage only, the slider would replace the header.

    Thanks in advance!

    Andre

    October 31, 2014 at 12:26 am #129966
    WisdmLabs
    Member

    Hi,

    To remove the header only on home page, add the following code to your functions.php

    add_action( 'genesis_before_header', 'wdm_remove_header_home' );
    
    function wdm_remove_header_home() {
    	if ( ! is_front_page() ) {
    		return;
    	}
     
    	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 );
    }

    Remove the navigation menu using
    (Primary Nav)
    <?php remove_action( 'genesis_after_header', 'genesis_do_nav' ); ?>

    In your template add the menu at the desired place using

    <?php wp_nav_menu( array('menu' => 'Menu Nav' )); ?>


    http://wisdmlabs.com/

    October 31, 2014 at 10:19 am #130018
    styzer
    Participant

    This totally worked! Thanks!

    Now as for removing the menu, that too worked. But the Outreach theme doesn't have a template file, so I don't see where I could include the code to move it elsewhere?

    I'd like to move both the navigation and the scrolling ticker and place them under the slider. I pasted the code in the Genesis settings "header and footer scripts," under the ticker script, but that didn't work.

    Any more ideas?

    Thanks again!

    Andre

    October 31, 2014 at 10:51 am #130021
    styzer
    Participant

    I see, I did ask the question before, how to reposition the navigation above the header. This code shows how to do it via the functions.php file:

    //* Reposition the primary navigation menu
    remove_action( 'genesis_after_header', 'genesis_do_nav' );
    add_action( 'genesis_before_header', 'genesis_do_nav' );

    What qualifier should I use to "add_action" in order to move the menu "above the container" (site-inner) so that it will always be under both the slider and the menu?

    I'm thinking it would be something like:

    //* Reposition the primary navigation menu
    remove_action( 'genesis_after_header', 'genesis_do_nav' );
    add_action( 'genesis_before_xxxxxxx', 'genesis_do_nav' );

    I tried "container" and "site-inner" but I'm thinking it's probably not be the right description.

    Any help much appreciated... 🙂

    Andre

  • 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