Reposition Secondary Navigation Menu Above Header in Genesis Child Themes

In some cases, Genesis child themes often come with both primary and secondary navigation menu positioned right under the header. Themes such as Eleven40, Streamline and a few others have the primary and secondary navigation placed on top of each other and this doesn’t look too tight. Of course, you can use just the primary menu and then add the other links as HTML to ‘header right’ widget but in my own case, I prefer to have ads in that position and had to reposition my secondary menu to the very top just above the header. However, it’s not only the secondary menu you can reposition, you can do the same for your primary menu.

Must Read: Change Default Search Engine to Google in Genesis Theme

How to position secondary menu above header in Genesis

- Go to Appearance > Editor > functions.php

- Add this piece of code to the last line and save:

/** Reposition the secondary navigation */
remove_action( 'genesis_after_header', 'genesis_do_subnav' );
add_action( 'genesis_before_header', 'genesis_do_subnav' );

Must Read: Add Google Adsense / Custom HTML Ads to Genesis Without A Plugin

How to position primary menu above header in Genesis

Of course, you can do the same thing for your primary menu by using this snippet instead:

/** Reposition the primary navigation menu */
remove_action( 'genesis_after_header', 'genesis_do_nav' );
add_action( 'genesis_before_header', 'genesis_do_nav' );

As you can see, the heavily modified Eleven40 theme I use has the secondary menu just above the header and I guess this should work for you too no matter which Genesis child theme you’re using.

Get free daily updates through email

avatar About Don Caprio

Don Caprio is a full time blogger / web designer living in Nigeria and apart from blogging, my other obsession is music. I'm a self-confessed Tupac fan, an iOS lover, an Android user, a Windows 8 power user, a writer with a 5-year old unfinished novel... and the list goes on and on. You can add me on Facebook, follow my updates on Twitter or add me to your circles on ! You can as well grab my feed and get updates through email.

Comments

  1. very nice article thanks for sharing
    anis recently posted..Great SEO Advice To Boost Your Web TrafficMy Profile

  2. wooow………though I havent read this article….. But this is what i have been waiting for………DONcaprio thanks for sharing this ……. Its like you posted this just because of me………
    doncyber recently posted..“Pay-Per Click” Ad Campaign: Earn More by Spending Less”My Profile

  3. DONCAPRIO….. You are two much…… I respect you for this…… You are such a generous man…… Keep it up man..
    doncyber recently posted..machine hardware care & maintenaceMy Profile

  4. Hey Don.
    Nice tut….
    Might use it when i’m designing a new blog for someone, right now i’m actually contented with how my eleve40 looks now
    Derek recently posted..Hit by a Google update? Here’s How You Can SurviveMy Profile

  5. nice tips , thanks for sharing
    Obasi Miracle recently posted..Re: How to root your tecno n3 T1 and many brands of android phonesMy Profile

  6. i just tried this ….but its not working on my ELEVEN40….. *sad*….. Any help?
    doncyber recently posted..Looking for the most instructive exhortation relating to workstation memory.My Profile

  7. avatar ebuka williams says:

    how do i change links and continue reading links color from orange to something else? Thanks

  8. Thanks for the tip Don. is there any other code that can be used to re-position the header in blogger?
    Also i think you have an error on “http://www.doncaprio.com/genesis/” .
    -Regards
    Kelvin recently posted..How to Back up and solve WordPress Update error with DowngradingMy Profile

  9. Don, how do i change the colour of my menu bar from its default colour to another colour of my choice?
    samuel recently posted..Tips To Unlocking GLO BOLT And MTN Huawei E303 USB ModemsMy Profile

  10. Nice post bro, and are you using external style sheet in mobile view? Because ur sites is with css style in opera mini, and im using n78. Its an update from u or its a bug?
    Sarakuj recently posted..Text in Stitches – Photoshop Text TutorialMy Profile

  11. Awesome some tutorial…. thumbs up!
    Eienstein Lyrics recently posted..Never Say Never LyricsMy Profile

  12. Interesting piece you’ve got here. I really love your blog

  13. Bro I did it and it moved my search box to the top too

  14. Nice one DC.
    Okaztle recently posted..Fixing ShareThis Wired #Hashtag Ending Sites UrlMy Profile

  15. Thanks for the guide, I have shifted the secondary nav bar and placed a banner advertisement in one of my blogs
    Gautham recently posted..Temple Run 2 for PCMy Profile

  16. Please How can i change the color of the navigation of the text button?? Mine is Dark
    Kingsley recently posted..Benefits of Swim SpasMy Profile

  17. didn’t work o…. i’m suppose to add those codes at the last line right?
    Wilson recently posted..How I Get 500 to 1000 Hints Daily To my 4 Weeks Old BlogMy Profile

  18. hi Don Caprio, Awesome this tutorial…. thumbs up for your hard work.
    Neha recently posted..How to Beat Morning Depression with easy TipsMy Profile

Speak Your Mind

*

CommentLuv badge