Created
November 11, 2015 03:05
-
-
Save reasonstousegenesis/4b98982043edfe1aca9a to your computer and use it in GitHub Desktop.
Produce a custom nav menu with Genesis
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
<?php | |
// Paste the code BELOW this line into your child theme functions. | |
/** | |
* Produce a custom nav menu with Genesis | |
* | |
* @author Reasons to Use Genesis | |
* @link http://reasonstousegenesis.com/genesis-nav-menu/ | |
*/ | |
add_action( 'your_desired_hook', 'rtug_nav_menu' ); // replace your_desired_hook with your desired hook | |
function rtug_nav_menu() { | |
genesis_nav_menu( array( 'theme_location' => 'your-location' ) ); // replace your-location with the nav menu location | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment