Moving navigation menu’s in Genesis is easy.
By default, Genesis includes 2 menu’s.
A primary and a secondary menu.
To move either of these nav menu’s before or after your header area, simply place this php code in your child theme’s functions.php file.
Go to Appearance > Editor > functions.php
Primary Menu
To move your primary menu above your header, paste this code into your child themes functions file.
/** Move Primary Nav Menu Above Header */
remove_action( 'genesis_after_header', 'genesis_do_nav' );
add_action( 'genesis_before_header', 'genesis_do_nav' );
Secondary Menu
To move your secondary menu above your header, paste this code into your child themes functions file.
/** Move Secondary Nav Menu Above Header */
remove_action( 'genesis_after_header', 'genesis_do_subnav' );
add_action( 'genesis_before_header', 'genesis_do_subnav' );
The menu you choose to move must be active in order to move it.
The WordPress menu system is easy to customize and highly flexible.
You can also place a search box, social media buttons and other functions in your menu’s.
Carlson007 says
How do I move the secondary menu in altitude pro( which is above the header by default) below the header. Thanks.
Brad Dalton says
Its in the header by default as you can see in the functions file:
You can change the hook in the default code from genesis_header to genesis_after_header however you will nee d to modify the CSS as well which is not something i have worked out or written about at this stage.
Jason Weber says
I know the snippet and how Genesis operates, but I’m having a heck of a time accomplishing this effect in the Parallax Pro child theme.
I also have a custom functions … I can get the primary nav before the header, but then it pushes the header down to where the sidebar is.
Brad Dalton says
You need to modify the code in your theme as its coded differently.
Humayun Hashmi says
it works…. thanks. Can i make this menu responsive and the other one also?
Brad Dalton says
They are by default.
Martin Messier says
Thanks, this was really helpful. Sweet and to the point.
Rofik says
Nice tips. Lucky that I found this site, I’m trying to change the position of the primary navigation on my genesis framework.
Yeah, I’m a newbie in coding. Thanks Brad..
Brad Dalton says
Hello Rofik
Did you work it out?
Rofik says
Yes Brad, it worked well. Now I also found the code to add top navigation instead of reposition the primary navigation. And I can add some css code to make the appearance look better.