• 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

Delete Custom Header on Specific Landing Page?

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 › Delete Custom Header on Specific Landing Page?

This topic is: not resolved

Tagged: conditional tags, executive pro, remove header, Simple Hooks

  • This topic has 4 replies, 2 voices, and was last updated 11 years, 10 months ago by Brad Dalton.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • June 12, 2014 at 8:32 pm #109542
    stugray
    Member

    Hello.

    Trying to delete my custom header for one specific landing page on my site.
    I am using the simple hooks plugin and have code in there for the image:

    Also have 'Unhook genesis_do_header() ' checked , and Execute PHP on this hook.

    I have selected the landing page template for this page (http://www.stupendousmarriage.com/conversationstarters), but the header still shows up. I don't understand conditional tags well enough to get the header gone, and support wouldn't help me out!!!

    What is the correct code to have the header removed on that page??
    Thanks!

    http://www.stupendousmarriage.com/conversationstarters
    June 13, 2014 at 10:06 am #109598
    Brad Dalton
    Participant

    Please paste your code in a Github Gist and link to it from here. Thanks.

    You could do this many ways all of which are easy.

    I assume you have a landing page template used on different pages and you want to remove the header image from one of them?

    The best solution depends on how you have added the header image.


    Tutorials for StudioPress Themes.

    June 13, 2014 at 2:48 pm #109625
    stugray
    Member

    All I have in there is a url, no php. Sorry for the mess up with the logo being shown here.

    <script src="https://gist.github.com/anonymous/347717ea4dff649feab5.js"></script>

    June 13, 2014 at 2:50 pm #109626
    stugray
    Member

    That didn't go either.

    <a href="http://www.stupendousmarriage.com"><img src="http://www.stupendousmarriage.com/wp-content/uploads/2014/05/Stupendous-Marriage-Header.jpg"></a>

    June 13, 2014 at 6:35 pm #109650
    Brad Dalton
    Participant

    Firstly, you could really add your header using the custom header uploader under the Appearance > Header rather than simple hooks. Then use the 2nd solution in your page_landing.php file

    1. You can hide it using CSS

    .page-template-page_landing-php .site-header {
    display: none;
    }
    

    2. Remove it using PHP in the page_landing.php file

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

    3. Or exclude it using a conditional tag. You would need to integrate this with the code you used to add your header.

    if ( ! is_page_template('page_landing.php') )
    

    Tutorials for StudioPress Themes.

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 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

© 2026 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