If you are using the Genesis framework or any child theme from StudioPress, here’s the code that you can use to move or reposition the navigation menu:
Primary Navigation Menu
/** Reposition the primary navigation menu */
remove_action( 'genesis_after_header', 'genesis_do_nav' );
add_action( 'genesis_before_header', 'genesis_do_nav' );
Secondary Navigation Menu
/** Reposition the secondary navigation menu */
remove_action( 'genesis_after_header', 'genesis_do_subnav' );
add_action( 'genesis_before_header', 'genesis_do_subnav' );
The navigation menu’s default location is after the header. The code above, when added to the child theme’s functions.php file, will reposition the navigation menu to show up before the header.
Heather hess says
Hi – I am trying to move my menu below the header – I would like a regular menu – black white and red.
I added this code to genesis hooks and here’s what I ended up with – what have I missed please!
/** Reposition the primary navigation menu */
remove_action( ‘genesis_after_header’, ‘genesis_do_nav’ );
add_action( ‘genesis_before_header’, ‘genesis_do_nav’ );
Techie She says
Hi Heather, if i’m not mistaken, you’re already using the HTML5, and the code for that is different.
Heather hess says
thanks! Heather
Techie She says
You’re welcome. Your site looks good, by the way, and it looks like you already found out how to move your navigation bar.