I have transferred the WordPress site from the local host to the cPanel host and actually transferred the site All actions such as: connecting to a new database, modifying links in database tables and... And now I can enter the counter management panel, but the problem is something else According to the console tab in inspect, some files are still trying to be loaded in the previous address, which is local, and this has caused the appearance of the site to interfere. How do I solve this problem?
Disorganized appearance of the site
CodePudding user response:
I use a WordPress plugin called All-in-One WP Migration
this plugin will give you an option to find and replace text in your install. When you are at the section of find and replace, you should find all the instances that the site is referring to the local address and replace them with the live address.
Also, for thing like photos you dont need to include the domain in the src
So
<img src="localhost/files/imageName.png">
Can be written as
<img src="/files/imageName.png">
And this will save you a small headache in the future!
CodePudding user response:
Try adding in an assets folder like the wordpress codex theme structure basics
assets (dir)
- css (dir)
- images (dir)
- js (dir)
Inside your ./assets/images/
Add in the missing files dir
and mention the in src
For Example
<img src="assets/images/big_map.png">