Skip to content

Instantly share code, notes, and snippets.

@brandonhimpfen
Created February 1, 2014 19:54
Show Gist options
  • Save brandonhimpfen/8757771 to your computer and use it in GitHub Desktop.
Save brandonhimpfen/8757771 to your computer and use it in GitHub Desktop.
Display a WordPress menu as a Twitter Bootstrap list group panel. Make sure to change the panel title, text and on line 2 - change the "menu-id"
echo '<div class="panel panel-default"><div class="panel-heading">Title Goes Here</div><div class="panel-body"><p>Description or whatever you want goes here.</p></div><ul class="list-group nav">';
wp_nav_menu( array( 'container' => false, 'menu_class' => 'list-group-item', 'theme_location' => 'menu-id', 'after' => '', 'items_wrap' => '%3$s' ));
echo '</ul></div>';
@carlitoescobar
Copy link

Dude this is great. Thanks for sharing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment