title: How to set 'src' path for a JS file in theme folder using local Wordpress environment
body: <p>Trying to link a JS file to my header to make it dynamic. The CSS file works fine as I've linked it into functions.php and from there it uses @import to select modules of CSS in the folder. Preferably this would be the best way to link a JS file but can you link multiple and if so how?</p>
  <p>Currently I'm using script tags with a url &quot;js/header.js&quot;, this returns an error value in dev tools of</p>
  <pre><code>GET http://pd-g.local/.js/header.js net::ERR_ABORTED 404 (Not Found)
  </code></pre>
  <p>How can I get WP to find the JavaScript file?</p>
  <p>PD &amp; G</p>
  <p>┣ css</p>
  <p>┃ ┗ header.css</p>
  <p>┣ images</p>
  <p>┃ ┗ fireplace.jpg</p>
  <p>┣ js</p>
  <p>┃ ┗ header.js</p>
  <p>┣ footer.php</p>
  <p>┣ front-page.php</p>
  <p>┣ functions.php</p>
  <p>┣ header.php</p>
  <p>┣ index.php</p>
  <p>┣ page.php</p>
  <p>┣ post.php</p>
  <p>┣ screenshot.png</p>
  <p>┗ style.css</p>