title: Slick Carousel not functioning correctly with WordPress
body: <p>I have been using Slick Carousel for a little while now, doing basic sliders. However, I have run into a problem which I cannot figure out!</p>
  
  <p>When I try to load the required files, slick does not work. First I loaded the required files as stated in the Slick's <a href="http://kenwheeler.github.io/slick/#getting-started" rel="nofollow noreferrer">Get Started</a> guide and that worked fine. However, when I go to implement it using the <code>functions.php</code> file in WordPress, things doesn't work properly.</p>
  
  <p>I have narrowed it down to the fact that loading the following files this way makes it work, but when I add them to the <code>functions.php</code> file, it stops working.</p>
  
  <pre><code>&lt;script type="text/javascript" src="//code.jquery.com/jquery-1.11.0.min.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="//code.jquery.com/jquery-migrate-1.2.1.min.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>My <code>functions.php</code> file is as follows:</p>
  
  <pre><code>function files() {
      // Stylesheets
      wp_enqueue_style('main_stylesheet', get_stylesheet_uri(), NULL, microtime());
      wp_enqueue_style('slick_stylesheet', get_theme_file_uri('/slick/slick.css'), array(), NULL, false);
      wp_enqueue_style('slick_theme', get_theme_file_uri('/slick/slick-theme.css'), array('slick_stylesheet'), NULL, false);
      // Javascript
      wp_enqueue_script('jquery');
      wp_enqueue_script('slick_script', 'https://cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick.min.js', array('jquery'), '1.8.1', true);
      wp_enqueue_script('slick_init', get_theme_file_uri('/js/slick-init.js'), array('slick_script'), NULL, true);
  }
  
  add_action('wp_enqueue_scripts', 'files');
  </code></pre>
  
  <p>The slick slider has been initialised in a separate file: <code>slick-init.js</code>.</p>
  
  <p>Does anyone know why this isn't working when I load the two jQuery script files from the <code>functions.php</code> file, but works when I load them just above the <code>&lt;/body&gt;</code> tag manually?</p>