Last active
April 12, 2016 23:40
-
-
Save carlosleopoldo/4499455 to your computer and use it in GitHub Desktop.
Walker Nav Menu to support Twitter Bootstrap in wp_nav_menu() Wordpress's function
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 | |
// Add to header.php | |
// Replace wp_nav_menu() | |
$args = array( | |
'container' => false, | |
'menu_class' => 'nav', | |
//'theme_location' => 'primary', | |
'walker' => new Bootstrap_Walker_Nav_Menu | |
); | |
wp_nav_menu($args); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment