Skip to content

Instantly share code, notes, and snippets.

@reasonstousegenesis
Created November 11, 2015 03:05
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 reasonstousegenesis/4b98982043edfe1aca9a to your computer and use it in GitHub Desktop.
Save reasonstousegenesis/4b98982043edfe1aca9a to your computer and use it in GitHub Desktop.
Produce a custom nav menu with Genesis
<?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