Move Genesis Nav Menu Before or After Header

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.

Warning: Always a good idea to have access to FTP and backup your files before editing php code in case you make a mistake.

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' );
Move Nav Menu Above Header

Moving Primary or Secondary Nav Menu Before or After Header in Genesis

The menu you choose to move must be active in order to move it.
Genesis Navigation Menus

To move a Primary or Secondary nav menu, it must be selected from the drop down and saved so its active.

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.

Get The Latest WordPress Tips

Comments

  1. 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..

Ask a Question