Wordpress menu with bootstrap

From wiki.network-crawler.de
Jump to: navigation, search
<nav class="navbar navbar-default" role="navigation">

  <div class="navbar-header">
    <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
      <span class="sr-only">Toggle navigation</span>
      <span class="icon-bar"></span>
      <span class="icon-bar"></span>
      <span class="icon-bar"></span>
    </button>
    <a class="navbar-brand" href="#">Brand</a>
    
  </div>
  
  <div class="collapse navbar-collapse navbar-ex1-collapse">
    <ul class="nav navbar-nav">
      <li class="active"><a href="#">Link</a></li>
      <li><a href="#">Link</a></li>
    </ul>
    
    <?php wp_nav_menu( array(
    'theme_location' => 'header-menu',
    'container' => 'ul',
    'menu_id' => '',
    'menu_class' => 'nav navbar-nav'
    ));
    ?>
  </div>
  
</nav>