skip to Main Content

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?

Console error image

Disorganized appearance of the site

2

Answers


  1. 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!

    Login or Signup to reply.
  2. 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">
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search