• 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

Monochrome Pro, add text widget to header? Hook?

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 › Monochrome Pro, add text widget to header? Hook?

This topic is: not resolved

Tagged: genesis_header_right, header right widget, monochrome pro

  • This topic has 5 replies, 3 voices, and was last updated 2 years, 11 months ago by Brad Dalton.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • February 21, 2020 at 4:02 pm #496884
    di
    Participant

    My client wants their names and phone number in the right side of header. They'd like the menu moved to the middle. Is there a way to do this in Monochrome Pro?

    http://adunate.com/test/
    February 21, 2020 at 10:46 pm #496890
    Brad Dalton
    Participant

    Which version of Monochrome Pro are you using?


    Get Help – Book Consultation.

    February 24, 2020 at 1:16 pm #496929
    di
    Participant

    @braddalton, version 1.3.0. Most recent.

    February 24, 2020 at 1:19 pm #496931
    di
    Participant

    Oops, I mean 1.4

    February 25, 2020 at 7:04 am #496947
    Victor Font
    Moderator

    The Genesis Framework has a built-in header-right widget area that you would use to add the content your client wants to see. Some theme developers opt to disable this feature for the sake of their design. The Monochrome theme is one of those themes that has the header-right widget area disabled.

    To re-enable it, look for this code in functions.php and remove it:

    // Removes header right widget area.
    unregister_sidebar( 'header-right' );

    Be aware that any CSS related to the header-right widget area may have also been removed by the developer. So, you'll have to work out the proper CSS if it doesn't look right to you. This article may help with figuring things out: https://victorfont.com/understanding-genesis-framework-site-header-layout/


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    February 27, 2020 at 12:24 am #496980
    Brad Dalton
    Participant

    1. Another option is to hook it in from functions.php and use CSS for positioning -

    add_action( 'genesis_header', 'monochrome_header_right' );
    function monochrome_header_right() {
    
        $text = sprintf( '<li class="right phone">%s', 'Phone : 123 456 789' );
    
        echo $text;
     
     }
    

    Or

    2. You could add the phone number to the existing nav menu filter in the functions file however it wouldn't display on mobiles and be included in the responsive menu.


    Get Help – Book Consultation.

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

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