title: Bootstrap WordPress nav walker dropdown suddenly not working
body: <p>I'm slowly losing my sanity trying to find out why the sub menu items suddenly stopped working. I've removed and replaced every bit of code and file I can think of to see where the problem went wrong. I'm hoping it's just something painfully obvious to someone who hasn't been staring at code for the last 5 hours.</p>
  
  <p>header.php</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
  &lt;head&gt;
  &lt;meta charset="utf-8"&gt;
  &lt;title&gt;&lt;?php wp_title('|',1,'right'); ?&gt; &lt;?php bloginfo('name');    ?&gt;&lt;/title&gt;
  &lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&gt;
  &lt;meta name="description" content=""&gt;
  &lt;meta name="author" content=""&gt;
  
  &lt;!-- Fonts --&gt;
  &lt;link href="http://fonts.googleapis.com   /css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,3    00,600,700,800" rel="stylesheet" type="text/css"&gt;
  &lt;link href="http://fonts.googleapis.com/css?family=Josefin+Slab:100,300,400,600,700,100italic,300italic,400italic,600italic,700italic" rel="stylesheet" type="text/css"&gt;
  
   &lt;!-- Le styles --&gt;
    &lt;link href="&lt;?php bloginfo('stylesheet_url');?&gt;" rel="stylesheet"&gt;
  
  &lt;!-- Le HTML5 shim, for IE6-8 support of HTML5 elements --&gt;
  &lt;!--[if lt IE 9]&gt;
    &lt;script src="http://html5shim.googlecode.com/svn/trunk/html5.js"&gt;&lt;/script&gt;
  &lt;![endif]--&gt;
  
  &lt;!-- Le fav and touch icons --&gt;
  &lt;link rel="shortcut icon" href="ico/favicon.ico"&gt;
  &lt;link rel="apple-touch-icon-precomposed" sizes="144x144" href="ico/apple-touch-icon-144-precomposed.png"&gt;
  &lt;link rel="apple-touch-icon-precomposed" sizes="114x114" href="ico/apple-touch-icon-114-precomposed.png"&gt;
  &lt;link rel="apple-touch-icon-precomposed" sizes="72x72" href="ico/apple-touch-icon-72-precomposed.png"&gt;
  &lt;link rel="apple-touch-icon-precomposed" href="ico/apple-touch-icon-57-precomposed.png"&gt;
  
    &lt;?php wp_enqueue_script("jquery"); ?&gt;
  &lt;?php wp_head(); ?&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
  &lt;!-- Header --&gt;
  &lt;div class="brand"&gt;&lt;img id="logo" class="img-responsive img-center"   src="http://www.gallantrywebdesign.com/mark_reed/images/printing_color_postcards_header.png" width="678" height="200" alt="Printing Color Postcards.com"/&gt;&lt;/div&gt;
  &lt;div class="address-bar"&gt;&lt;a href="http://www.gallantrywebdesign.com/wordpress/services/all-postcards/"&gt;Marketing Products &amp; Services&lt;/a&gt; | &lt;a href="http://www.gallantrywebdesign.com/wordpress/services/sanitation-only/"&gt;sanitationpostcards.com&lt;/a&gt;&lt;/div&gt;
  
   &lt;!-- Navigation --&gt;
   &lt;nav class="navbar navbar-default navbar-fixed-top" role="navigation"&gt;
      &lt;div class="container"&gt;
          &lt;!-- Brand and toggle get grouped for better mobile display --&gt;
          &lt;div class="navbar-header"&gt;
              &lt;button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"&gt;
                  &lt;span class="sr-only"&gt;Toggle navigation&lt;/span&gt;
                  &lt;span class="icon-bar"&gt;&lt;/span&gt;
                  &lt;span class="icon-bar"&gt;&lt;/span&gt;
                  &lt;span class="icon-bar"&gt;&lt;/span&gt;
             &lt;/button&gt;
         &lt;!-- navbar-brand is hidden on larger screens, but visible when the menu is collapsed --&gt;
         &lt;a class="navbar-brand" href="http://www.gallantrywebdesign.com/wordpress/"&gt;Printing Color Postcards&lt;/a&gt;
         &lt;/div&gt;
  
        &lt;!-- Collect the nav links, forms, and other content for toggling --&gt;
        &lt;?php
          wp_nav_menu( array(
              'menu'              =&gt; 'menu',
              'theme_location'    =&gt; 'menu',
              'depth'             =&gt; 2,
              'container'         =&gt; 'div',
              'container_class'   =&gt; 'collapse navbar-collapse',
              'container_id'      =&gt; 'bs-example-navbar-collapse-1',
              'menu_class'        =&gt; 'nav navbar-nav',
              'fallback_cb'       =&gt; 'wp_bootstrap_navwalker::fallback',
              'walker'            =&gt; new wp_bootstrap_navwalker())
           );
          ?&gt;
         &lt;/div&gt;
           &lt;/nav&gt;
  
           &lt;?php if( is_home() || is_front_page() ) :?&gt;
  
           &lt;?php endif;?&gt;
           &lt;div class="container"&gt;
            &lt;div class="row"&gt;
  </code></pre>
  
  <p>functions.php</p>
  
  <pre><code>&lt;?php 
  
  function footer_widgets()  {
   register_sidebar(array(
  'name'          =&gt; __( 'Footer 1', 'the-bootstrap' ),
  'id'            =&gt; 'footer-1',
  'before_widget' =&gt; '&lt;aside class="widget well %2$s" id="%1$s"&gt;',
  'after_widget'  =&gt; '&lt;/aside&gt;',
  'before_title'  =&gt; '&lt;h3 class="widget-title"&gt;',
  'after_title'   =&gt; '&lt;/h3&gt;',
   ) );
  
   register_sidebar(array(
  'name'          =&gt; __( 'Footer 2', 'the-bootstrap' ),
  'id'            =&gt; 'footer-2',
  'before_widget' =&gt; '&lt;aside class="widget well %2$s" id="%1$s"&gt;',
  'after_widget'  =&gt; '&lt;/aside&gt;',
  'before_title'  =&gt; '&lt;h3 class="widget-title"&gt;',
  'after_title'   =&gt; '&lt;/h3&gt;',
   ) );
  
   register_sidebar(array(
  'name'          =&gt; __( 'Footer 3', 'the-bootstrap' ),
  'id'            =&gt; 'footer-3',
  'before_widget' =&gt; '&lt;aside class="widget well %2$s" id="%1$s"&gt;',
  'after_widget'  =&gt; '&lt;/aside&gt;',
  'before_title'  =&gt; '&lt;h3 class="widget-title"&gt;',
  'after_title'   =&gt; '&lt;/h3&gt;',
   ) );
   }
   // Hook The 'widgets_init' Action
   add_action( 'widgets_init', 'footer_widgets', 11);
  
  
   function wpbootstrap_scripts_with_jquery()
   {
  
   // Register Custom Navigation Walker
   require_once('wp_bootstrap_navwalker.php');
  
   register_nav_menus( array(
   'menu' =&gt; __( 'Primary Menu', 'wpbootstrap' ),
   ) );
  
  // Register the script like this for a theme:
  wp_register_script( 'custom-script', get_template_directory_uri()  .       '/bootstrap/js/bootstrap.js', array( 'jquery' ) );
  // For either a plugin or a theme, you can then enqueue the script:
  wp_enqueue_script( 'custom-script' );
  
  
  }
  add_action( 'wp_enqueue_scripts', 'wpbootstrap_scripts_with_jquery' );
  
  if ( function_exists('register_sidebar') )
  register_sidebar(array(
      'before_widget' =&gt; '',
      'after_widget' =&gt; '',
      'before_title' =&gt; '&lt;h3&gt;',
      'after_title' =&gt; '&lt;/h3&gt;',
  ));
  
  
  ?&gt;
  </code></pre>
  
  <p><a href="http://www.gallantrywebdesign.com/wordpress/" rel="nofollow">This is the URL</a></p>
  
  <p>I don't think it's the css, so I didn't post it here. I will upon request.</p>
  
  <p>Thanks for any insight!</p>