Reputation: 1
So I have built a WordPress site on local host using xampp now I'm trying to upload to the server however the style sheets, java script and pictures are not loading when i inspect element its still looking for it on local host i think get_template_directory_uri() is still pointing to local host how do i change it to face the new site
here is what it should look like
this is what it does look like
the url is http://live.homesmartenergy.co.uk/
I have tried to do a search and replace i used this website for the tutorial https://betterstudio.com/blog/search-and-replace-phpmyadmin/
and added the following to where it said to add it
update TABLE_NAME set FIELD_NAME =
replace(FIELD_NAME, 'http://localhost/HomeSmartEnergy/', 'http://live.homesmartenergy.co.uk/');
however im getting this error
#1146 - Table 'markpric_wo3.TABLE_NAME' doesn't exist
i dont know where its getting that name from as my database is markpric_Homesmart2
Upvotes: -3
Views: 267
Reputation: 16
Hey there i looked into your website and i can check that the url are not yet change from localhost(http://localhost/HomeSmartEnergy/) to your current url ( http://live.homesmartenergy.co.uk/). To do that you can change all your url with the new one or just download the database and open it with sublime and search for http://localhost/HomeSmartEnergy/, now replace all that urls with your current urls i.e http://live.homesmartenergy.co.uk/.
Upvotes: -1