Created
August 22, 2013 12:02
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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