• 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

Lifestyle Pro Header showing on all pages

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 › General Discussion › Lifestyle Pro Header showing on all pages

This topic is: not resolved

Tagged: Lifestyle pro header display

  • This topic has 5 replies, 2 voices, and was last updated 9 years, 10 months ago by pxforti.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • July 6, 2015 at 10:40 am #158519
    carolacat
    Member

    Hi there,

    I'm using the lifestyle pro theme and as many of you know, the header image displays on each secondary page too. Does anyoone know a fix for only showing the header on the home page and not having it displayed on the internal pages please?

    Suggestions and help much appreciated. I will spend a little time responding to other's requests if there is anything I can help with too.

    Carol

    July 6, 2015 at 2:38 pm #158551
    pxforti
    Participant

    Add the following code to the end off your functions.php page.
    Note: If that doesn't work as expected, try replacing is_front_page with is_home

    function wnd_add_genesis_header()	{
    	if (!is_front_page())	{
    		//* Remove site header elements
    		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 );	
    	}
    }
    
    add_action( 'genesis_before', 'wnd_add_genesis_header' );

    writeNowDesign
    WordPress and Ecommerce Website Design

    July 6, 2015 at 4:39 pm #158565
    carolacat
    Member

    Hi Thanks so much for the reply. I tried both options but they didn't work. I even tried it with about_ellen as that is the front page at the moment on http://www.ellenhogan.ie

    If you have any further ideas, I'd appreciate it!

    Carol

    July 6, 2015 at 6:15 pm #158589
    pxforti
    Participant

    I tried this on the same template and it works. That's with a page specified as home page. The only problem is that it also shows the header on the specified home page (in your case about page).

    One way around this would be to use the Home Page Top widget area to past the about us content. Or, use a unique page as the home page.


    writeNowDesign
    WordPress and Ecommerce Website Design

    July 7, 2015 at 1:24 am #158620
    carolacat
    Member

    Yes, Thanks, I set the front page to 'home' and added the code to my_functions.php file but it is still didn't have the desired effect so then I added it to the functions.php and it worked!

    Funny how it didn't work on the custom functions file though!?

    Any suggestions on how I can add this to my custom file to prevent it being overridden on updates?

    Carol

    July 7, 2015 at 2:46 am #158627
    pxforti
    Participant

    Never heard of using anything other than functions.php. Unless you use an include in functions.php there is no way for WordPress to know about that file. When you see the update message from studeopress its for the parent not child template.


    writeNowDesign
    WordPress and Ecommerce Website Design

  • Author
    Posts
Viewing 6 posts - 1 through 6 (of 6 total)
  • The forum ‘General Discussion’ 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