• 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

Remove header widget

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 › Remove header widget

This topic is: not resolved
  • This topic has 2 replies, 2 voices, and was last updated 13 years ago by thedarkmist.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • February 20, 2013 at 3:07 am #21591
    thedarkmist
    Member

    Hello, in Minimum theme I need to remove the header widgets. As reported here:

    http://www.briangardner.com/code/remove-header-elements/

    I used the code:

    unregister_sidebar( 'header-right' );

    It correctly removed the widget area in "widgets", but the container div is still present in the theme. How can I remove it? Thank you!

     

    February 20, 2013 at 8:59 am #21648
    Peter
    Member

    The header-right widget area is added in the main Genesis framework so you'd have to replace that code with your own, minus the widget area..

    Adding this to your child theme functions.php file should do the trick;

    remove_action( 'genesis_header', 'genesis_do_header' );
    add_action( 'genesis_header', 'custom_genesis_do_header' );
    function custom_genesis_do_header() {
    	echo '<div id="title-area">';
    	do_action( 'genesis_site_title' );
    	do_action( 'genesis_site_description' );
    	echo '</div><!-- end #title-area -->';
    }
    February 26, 2013 at 10:51 am #22932
    thedarkmist
    Member

    Thank you very much, it solved!

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

© 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