• 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

How to remove the genesis_header_right action?

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 › How to remove the genesis_header_right action?

This topic is: resolved

Tagged: action, genesis_header_right, header, header_right

  • This topic has 4 replies, 2 voices, and was last updated 12 years, 10 months ago by Brad Dalton.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • August 14, 2013 at 12:43 am #56241
    Holli
    Member

    Hi,

    I've searched throughout the Genesis framework code and can't find an add_action for genesis_header_right anywhere? I know that it's being set somewhere before this function is called in the lib/structure/header.php file because the has_action('genesis_header_right') conditional is set to true. I've double-checked the other conditionals and the header_right sidebar is definitely unregistered. I've been staring at this for hours, and this is really blowing my mind. I need this has_ation conditional in header.php to be set to false. How can I make the genesis_header_right action GO AWAY?

    	if ( ( isset( $wp_registered_sidebars['header-right'] ) && is_active_sidebar( 'header-right' ) ) || has_action( 'genesis_header_right' ) ) {
    		genesis_markup( array(
    			'html5'   => '<aside %s>',
    			'xhtml'   => '<div class="widget-area header-widget-area">',
    			'context' => 'header-widget-area',
    		) );
    
    			do_action( 'genesis_header_right' );
    			add_filter( 'wp_nav_menu_args', 'genesis_header_menu_args' );
    			add_filter( 'wp_nav_menu', 'genesis_header_menu_wrap' );
    			dynamic_sidebar( 'header-right' );
    			remove_filter( 'wp_nav_menu_args', 'genesis_header_menu_args' );
    			remove_filter( 'wp_nav_menu', 'genesis_header_menu_wrap' );
    
    		genesis_markup( array(
    			'html5' => '</aside>',
    			'xhtml' => '</div>',
    		) );
    	}

    What am I missing here??? Thanks!

    August 14, 2013 at 2:08 am #56245
    Brad Dalton
    Participant

    Try this

    https://gist.github.com/braddalton/6228915


    Tutorials for StudioPress Themes.

    August 14, 2013 at 10:50 am #56342
    Holli
    Member

    Hi Brad. Thanks for trying to help. However, that doesn't work, That's the problem. It also doesn't work when you unregister it with a priority of 11. Nothing works. The has_action for genesis_header_right still returns true.

    August 14, 2013 at 11:56 am #56357
    Holli
    Member

    Well Brad, I don't know what was going on. Maybe something was being cached somewhere or something, but now just adding the unregister_sidebar to header_right in the functions file seems to be working. It definitely wasn't last night. I'd like to add a lot more colorful language here, but I'll keep this G-rated. 🙂 Thanks again for your help Brad!

    August 14, 2013 at 11:59 am #56358
    Brad Dalton
    Participant

    hahaha. Good stuff Holli.

    It's the weird and wonderful world of WordPress!


    Tutorials for StudioPress Themes.

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘How to remove the genesis_header_right action?’ 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

© 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