Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.