images - What did I do WRONG?

admin2025-06-04  4

WHAT did I do WRONG?

I am most definitely NOT skilled with website building, but I try to do things on my own.

I know ABSOLUTELY NOTHING about code and working with code.

I decided to change the look of my wordpress website.

I setup a NEW site on my hosting account.

I set up a staging site for the new site on my host account.

I used the SAME THEME as my present site and totally redesigned it on the new staging site.

I duplicated MANY (but not all because I had too many) of the same plugins from the existing site to the new staging site.

I IMPORTED all of my posts and pages from the existing site to the new staging site.

I IMPORTED my entire existing media library to the new staging site.

I copied and placed the widgets used on the existing site to the new staging site.

When it looked the way I wanted it to look, I then moved the new staging site to the new site I setup on my hosting account and checked it again and it looked and functioned the way I wanted it to.

I then had my host remove the existing site FOR ME and replace it with the new version of the site and it became the active site.

NOW when I open the site ALL of the images are NOT THERE and they ONLY SHOW UP WHEN THE CURSOR IS PLACED DIRECTLY OVER THEM.

BUT the pictures on the widgets do not show up AT ALL.

WHAT SETTING DO I HAVE TO CHANGE TO GET THE IMAGES TO APPEAR PERMANENTLY?

WHAT did I do WRONG?

I am most definitely NOT skilled with website building, but I try to do things on my own.

I know ABSOLUTELY NOTHING about code and working with code.

I decided to change the look of my wordpress website.

I setup a NEW site on my hosting account.

I set up a staging site for the new site on my host account.

I used the SAME THEME as my present site and totally redesigned it on the new staging site.

I duplicated MANY (but not all because I had too many) of the same plugins from the existing site to the new staging site.

I IMPORTED all of my posts and pages from the existing site to the new staging site.

I IMPORTED my entire existing media library to the new staging site.

I copied and placed the widgets used on the existing site to the new staging site.

When it looked the way I wanted it to look, I then moved the new staging site to the new site I setup on my hosting account and checked it again and it looked and functioned the way I wanted it to.

I then had my host remove the existing site FOR ME and replace it with the new version of the site and it became the active site.

NOW when I open the site ALL of the images are NOT THERE and they ONLY SHOW UP WHEN THE CURSOR IS PLACED DIRECTLY OVER THEM.

BUT the pictures on the widgets do not show up AT ALL.

WHAT SETTING DO I HAVE TO CHANGE TO GET THE IMAGES TO APPEAR PERMANENTLY?

Share Improve this question asked Jan 28, 2019 at 17:41 TonyTony 31 bronze badge 2
  • Did you do a search and replace on the database to change the site from your staging URL (your-staging-domain) to your live domain (your-live-domain)? – Sam Commented Jan 28, 2019 at 17:52
  • 2 Can you please reformat your question to make it more readable? We don't care about your background, important is what you did, what the status is now and what it should be. Try avoiding putting EVERYTHING IN CAPSLOCK please – kero Commented Jan 28, 2019 at 17:53
Add a comment  | 

1 Answer 1

Reset to default 1

As explained in one of the comments to your question, the issue is how WP stored images (which are actually a kind of post). If you look at the Media on your developement/local site, you will see that each image has a URL that is related to your local URL.

And each image is stored in a folder (you can see the folder name in the URL). So, there are two things you have to do if you want the images from your development site available on the live site.e

You have to manually copy the images from the development folders to the same folders on the live site.

And you have to replace the URLs inside the database for those media items to point to the new URL. This is most easily done with a Search and Replace plugin (I like the "Better Search and Replace" plugin). Use the plugin to search for your old domain/URL (the test system) and replace it with the new/live domain name/URL. (You can do this also with manual SQL commands, but the plugins are easier.)

Once you do that, the new images should be visible.

And, please, no all caps. It looks like you are shouting, and it's hard to read.

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1748967781a315236.html

最新回复(0)