Last active
March 14, 2018 21:47
-
-
Save nickdavis/aa2cf126384a3550940767688b8f8959 to your computer and use it in GitHub Desktop.
Render a WordPress menu without the container
This file contains hidden or 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 | |
if ( has_nav_menu( 'footer-1' ) ) { | |
wp_nav_menu( array( | |
'theme_location' => 'footer-1', | |
'container' => '', | |
'menu_class' => 'footer_links', // You may want to add a particular CSS class to make it easier to identify | |
) ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment