+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
    • 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
Directory Maximizer Review: Search Engine Optimized Manual Submission
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.
facebook embed
WebmastersWordpress

Fix: Facebook Post Embed not Working on WordPress

10 years ago
Wordpress-icon
Wordpress

How to Make WordPress Tags Link to Search Page

9 years ago

Recent Articles

yunmai massage gun mini 2.
Yunmai Massage Gun Mini 2 Review
BenQ LaptopBar Review: The Accessory I didn’t Know I Needed
teendow g20
Teendow Robot Vacuum G20 Review
Yunmai EasePro Massage Gun 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
How to Use WhatsApp on an iPad
Things to Consider When Buying a MacBook
programmer
Learning to Code: A Comprehensive Guide for Beginners
identity thief
How to Efficiently Prevent Identity Theft

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