• 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

Generate Theme: Remove Header

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 › Generate Theme: Remove Header

This topic is: not resolved
  • This topic has 5 replies, 2 voices, and was last updated 12 years, 4 months ago by SoZo.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • January 25, 2013 at 12:41 pm #14664
    ironjiant
    Member

    I am looking to remove the Header of the Generate Theme. The code below removes the header but screws up the sidebar and footer box.

    http://www.jayniblick.com

    And added this code within functions.php:

    /** Remove header */
    add_action('get_header', 'child_remove_header');
    function child_remove_header() {
    if ( ! is_home() )
    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 );
    }

    Thanks,

    -Jim

    January 25, 2013 at 12:55 pm #14677
    SoZo
    Member

    Did you write that out or copy/paste it from somewhere? It is showing up here with fancy single quotes. Try copy pasting this

    /** Remove header */
    add_action('get_header', 'child_remove_header');
    function child_remove_header() {
    if ( ! is_home() ) 
    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

    January 25, 2013 at 1:04 pm #14682
    ironjiant
    Member

    Thanks for noticing that SoZo,
    It works as before but the sidebar and Footer boxes are still off.

    -Jim

    January 25, 2013 at 1:10 pm #14684
    SoZo
    Member

    Ok, try this with the extra curly braces

    /** Remove header */
    add_action('get_header', 'child_remove_header');
    function child_remove_header() {
    if ( ! is_home() ) {
    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

    January 25, 2013 at 1:15 pm #14686
    ironjiant
    Member

    Resolved. You can close this Post.

    Thanks!

    -Jim

    January 25, 2013 at 1:23 pm #14691
    SoZo
    Member

    You're welcome 🙂


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

  • Author
    Posts
Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Generate Theme: Remove Header’ is closed to new 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