• 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

News Pro: How can I replace genesis_header_right with an actual banner?

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 › News Pro: How can I replace genesis_header_right with an actual banner?

This topic is: not resolved

Tagged: do_action, undo_action

  • This topic has 2 replies, 2 voices, and was last updated 11 years, 11 months ago by Ted.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • October 10, 2014 at 8:07 pm #127435
    Ted
    Member

    Greetings all,

    In News Pro I would like to replace the header right widget with an actual banner, rather than a widget. I'm using the theme in a multisite and don't want users to change it, thus I want to replace the widget area with a hard-coded banner. I guess the standard way would be to remove_action and then add_action with my own function, which would be the banner. However, it appears the hook uses do_action, so remove action doesn't work. I guess what I need to know is how to remove a do_action so I can replace it with my own do_action, assuming I'm even on the right track. 🙂

    Thanks

    October 10, 2014 at 8:30 pm #127439
    Sridhar Katakam
    Participant

    Try adding this in functions.php:

    //* Remove the header right widget area
    unregister_sidebar( 'header-right' );

    Then hook a function to "genesis_header_right" having the HTML to display your desired banner.


    Genesis Tutorials | Follow me on Twitter

    October 10, 2014 at 9:47 pm #127449
    Ted
    Member

    Thank you, Sridhar. That works perfect! 😀

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