+321 123 4567
info@test.com
  • Home
  • My Services
    • Web Design
    • Web Development
    • Technical Writing
  • Portfolio
  • My Thoughts
  • Free Tools
    • Photo Editor
    • Avatar Generator
    • Email Migration Tool
    • QR Code Generator
    • RSS to HTML Converter
    • Rich Text Editor
    • IP Address Geolocation
    • Base64 Image Encoder
    • NATO Translator
    • All Tools
  • Contact
Home
Wordpress
Reposition Secondary Navigation Menu Above Header in Genesis Child Themes

Reposition Secondary Navigation Menu Above Header in Genesis Child Themes

Wale Adekile
January 17, 2013

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.


Previous Post
10 Sure Ways to Drive Instant Free Traffic to Your 10 Days Old Blog
Next Post
NCSettings: The Best Alternative to SBSettings on iOS 6.0.1 / 6.1
Wale Adekile
Husband to the world's most beautiful woman and father to two awesome kids. A nerd, obviously; also, a technical business analyst, a web designer who preaches the gospel of WordPress, and a writer. You can check out my published books on Amazon.
embed a radio station in your blog or website
BloggerWordpress

Adding a Streaming Radio Station to Your Blog or Website (Blogger/WordPress)

14 years ago
Wordpress

Change MobilePress Theme – Edit the Colors and Add a Logo

13 years ago

Recent Articles

wahl rapic clip hair clipper
Wahl Rapid Clip Hair Clipper Review: DIY Made Easy
BenQ LaptopBar Review: Luxury or Necessity?
yunmai easepro unboxed
Yunmai EasePro Massage Gun Review
g20
Teendow G20 Robot Vacuum and Mop Review
bathroom
Dear Men, Spraying All Over the Toilet Seat is Disgusting and Irresponsible
winx mediatrans
How to Transfer Photos from iPhone to Computer Without iTunes
google workspace
How to Migrate Emails From Google Workspace/G Suite to cPanel
synology diskstation ds920+
Synology DiskStation DS920+ Review
playstation 4
Why I haven’t Upgraded to the PlayStation 5 Yet
pain
Started Watching Anime as an Adult? You’re Not Alone

All contents on this blog are copyright protected and cannot be reproduced on other websites without permission.

Copyright © 2022 – NerdieDad | Home | Contact | About | Privacy Policy