6/29/2016 - 4:07 PM

Reposition Primary Navigation

Brian Gardner

There’s a pretty good chance you’ll need to do some styling with CSS once you’ve moved the primary navigation to the site header. It might not be much, but there possibly a few tweaks here or there you might consider.
//* The next step is to move the primary navigation into that spot. 
//* Below is the code to reposition the primary navigation menu to the site header:

//* Do NOT include the opening php tag
//* Reposition the primary navigation menu
remove_action( 'genesis_after_header', 'genesis_do_nav' );
add_action( 'genesis_header', 'genesis_do_nav', 12 );
//* The first thing you’ll want to do is to remove the site header widget area. 
//* Below is the code to remove the widget area in the site header:
//* By doing this, your client (or any of our users) will no longer see the site header widget area as an option in the 
//* Widgets screen of the WordPress dashboard.

//* Do NOT include the opening php tag
//* Remove the header right widget area
unregister_sidebar( 'header-right' );