Skip to content

Instantly share code, notes, and snippets.

@johnmorris
Created August 22, 2013 12:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johnmorris/6306322 to your computer and use it in GitHub Desktop.
Save johnmorris/6306322 to your computer and use it in GitHub Desktop.
Move the primary navigation menu to the top of a page using the Genesis theme.
// Child theme setup function
function child_theme_setup() {
// Remove the primary navigation from its current location
remove_action( 'genesis_after_header', 'genesis_do_nav' );
// Add the primary navigation to the top of the page
add_action( 'genesis_before_header', 'genesis_do_nav' );
}
// Hook into genesis_setup
add_action( 'genesis_setup', 'child_theme_setup' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment