title: Moved website location: Loading failed for the <script>
body: <p>Building a Wordpress site locally, I've moved the website's location from localhost/company to the root (so localhost). I've gone into the settings in phpMyAdmin and changed the siteurl and home to '<a href="http://localhost" rel="nofollow noreferrer">http://localhost</a>'.</p>
  
  <p>Initially the site loads almost correctly (missing some images, elements etc). I presume these missing things are down to me not going changing the links using MySQL or the Velvet Blues Plugin.</p>
  
  <p>However, when I refresh the entire website structure fails. Only a few elements actually load. If I inspect, I see the same error over and over.</p>
  
  <blockquote>
    <p>Loading failed for the  with source "<a href="http://localhost/company/wp-content/themes/grandtour/js/jquery-3.3.1.min.js" rel="nofollow noreferrer">http://localhost/company/wp-content/themes/grandtour/js/jquery-3.3.1.min.js</a>". </p>
  </blockquote>
  
  <p>This error continues referencing just about any JS file within /wp-content/ or /wp-includes/.</p>
  
  <p>I'm unsure why it's still looking into /company/ despite me changing the phpMyAdmin settings. </p>
  
  <p>Edit: A large amount of the JS files are being linked to like below:</p>
  
  <pre><code>&lt;script type="text/javascript"
     src="&lt;?php bloginfo("template_url"); ?&gt;/js/jquery-3.3.1.min.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>So it would appear that 'template_url' is still seen as localhost/company. Should this have changed when I changed 'siteurl' and 'home'?</p>
  
  <p>Edit 2: The problem is now also occurring when I upload the site to a live domain, so it's not a localhost issue.</p>