Came across an issue with the Bootstrap navbar dropdown with respect to WordPress.  Here’s the issue:

  1. Download Bootstrap and put it up on your website (reference the min.css and min.js files).
  2. Go to the sample code for the Default Navbar in the Bootstrap docs here and copy it to your clipboard.
  3. Paste that code into your website HTML, then refresh your site.

Everything might look exactly like the doc demo, but try clicking on the “dropdown” link.  Turns out that jquery must be listed before bootstrap.  I did this with WordPress’ enqueue method as follows:

 

wp_enqueue_script( 'bootstrap_js', 
get_template_directory_uri().'/packages/bootstrap/js/bootstrap.min.js',
array( 'jquery' ), false, true );