Created
November 11, 2015 03:08
-
-
Save reasonstousegenesis/6f79a2a1a9b4c5476a86 to your computer and use it in GitHub Desktop.
Produce a footer 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 footer nav menu with Genesis | |
* | |
* @author Reasons to Use Genesis | |
* @link http://reasonstousegenesis.com/genesis-nav-menu/ | |
*/ | |
add_action( 'genesis_footer', 'rtug_footer_menu', 7 ); | |
function rtug_footer_menu() { | |
genesis_nav_menu( array( | |
'theme_location' => 'footer', | |
'depth' => 1, | |
'fallback_cb' => false, | |
'menu_class' => 'genesis-nav-menu' | |
) ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment