• 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

Adding widget under header right navigation on Academy Pro

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 › Adding widget under header right navigation on Academy Pro

This topic is: not resolved

Tagged: academy pro, header right, header widget

  • This topic has 8 replies, 3 voices, and was last updated 4 years, 7 months ago by tanyaslogos.
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • March 31, 2018 at 3:15 pm #218502
    tanyaslogos
    Member

    Hello! I hope that everyone is having a wonderful Saturday!

    I am trying to add a widget box under the header navigation in the Academy Pro theme. I commented out the removal of the header widget on line 216-217 and tried changing the position number on line 275 but no matter what I do the widget remains above or beside the navigation.

    I tried moving it with CSS and failed there too. I know I am missing something elementary but darn if I can figure it out.

    If anyone can help me I would greatly appreciate it.

    Thank you in advance!
    Tanya

    March 31, 2018 at 6:40 pm #218509
    Erika
    Participant

    Hi Tanya,

    This post will help get you back on track: https://isaiahdesign.co/after-header-widget-genesis/

    Let me know how it goes!

    March 31, 2018 at 8:40 pm #218513
    tanyaslogos
    Member

    Thank you Erika! I really appreciate you taking the time to help me. 🙂

    That is a great tutorial - unfortunately my problem isn't adding the widget box it has more to do with positioning it.

    When I comment out the removal of the original "header right widget" it adds the header widget code before the navigation code on the right side of the header.

    I want the code to display under the navigation - not above it.

    I tried changing the position number on the navigation but it moves it everywhere but above the header right widget box. lol

    Anywhoooo I am going to fiddle with it some more and hopefully I will find the magic number. 🙂

    Thanks again and I hope you have a great Holiday weekend!
    Tanya

    April 1, 2018 at 12:19 am #218515
    Brad Dalton
    Participant

    I would use a 3rd parameter of 5.

    Line 274 of functions.php, change the 12 to 5 like this :

    add_action( 'genesis_header', 'genesis_do_nav', 5 );

    Based on my testing, that puts the header right widget area after the nav menu in the header.

    Then you'll need to add CSS yourself which will vary depending on the widget you add in header right.


    Get Help – Book Consultation.

    April 1, 2018 at 9:23 pm #218538
    tanyaslogos
    Member

    Hello Brad,

    Thank you so very much! I am sorry for the delay in getting back to you - Easter snuck up on me like some demonic bunny rabbit and bashed me in the head! lol

    I had tried that ( actually I tried every number between 1 and 15 lol )

    When I comment out the "remove header-right widget" on line 216 and add the number 5 to line 274 I get this order.

    Navigation
    Title
    Widget

    What I was trying to achieve was

    Title
    Navigation
    Widget

    I guess my OCD is getting in my way. LOL

    Anywhooooooo I really appreciate you taking the time to help me. One of these days I am going to master this PHP stuff. Not any time in the near future apparently but someday! LOL

    THANKS AGAIN! YOU ARE THE BEST!
    Tanya

    April 1, 2018 at 10:26 pm #218539
    Brad Dalton
    Participant

    This is what i get :


    Get Help – Book Consultation.

    April 2, 2018 at 11:33 am #218557
    tanyaslogos
    Member

    Hmmm how very weird....

    This is what I get lol - I think the PHP Gods love you!

    screenshot

    I have tried moving it over with CSS but nothing seems to want to scooch it over. Ehhh

    ¯\_(ツ)_/¯

    April 18, 2018 at 1:29 am #219065
    Brad Dalton
    Participant

    Follow up on this. Did you get this worked out?

    Now you need to use CSS to position it to the right. The PHP is correct but it doesn't position like CSS.


    Get Help – Book Consultation.

    June 7, 2018 at 9:09 pm #220655
    tanyaslogos
    Member

    Hello Brad, Nope I gave up. LOL

    I tried to reposition it with css but it wouldn't budge.

    No biggy I worked around it. 🙂

    Thanks for following up though! I appreciate your help!

    Tanya

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

© 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