-
hollytga
Hi,
I have noticed since I started using Generate Press/Generate Blocks that when I launch a website by changing a domain from a subdomain to the real one that I have to go into each page and resave it in order for the images to be seen. Normally there are not so many images and pages and I can do this manually for each page. However I am about to launch a new site and it has a ton of images and pages (lots of portfolio and team member individual pages). So I’d like to find a better way.I don’t know for sure this a GP/GB issue but that is the only thing that changed in what I am doing. WP has updated lots since then though.
Just wondering if you have any idea why this is happening or if you have any suggestions.
-
Hi there,
I would recommend using a search & replace plugin after migration, eg. Velvet Blues Update URLs to update the old domain to the new one.
-
hollytga
I’ll try that one. I have used others in the past, and can’t really remember what worked best. But when there aren’t many pages or images it was just easier to do it by resaving the page.
-
Yes, that’s true 🙂
-
hollytga
Hi Ying,
Ok, I am doing this now (on a smaller site than I original asked about). So maybe this is a good test. All the iamge urls are correct – without running a search and replace – I actually tried but it couldn’t find any. But not all images are being shown – unless I go into each page and resave. I don’t have to replace the images, just resave the page. It doesn’t happen on all images. Looks like mostly on images that are background or using an element and being set to appear dynamically.The heros on this site are all background and all pages except for home have the featured image being the background image hero which comes from an element.
I can go through this site and resave each page, but before I do, wondering why this is happening and how I can avoid it on bigger sites.
Thanks for any ideas.
https://goldbergestateplanning.com/ -
hollytga
Upon further inspection the background images have the old domain in the block. But the search and replace can’t see them because they are correct in the media folder.
So it seems that it happens only on background images in a generate blocks container.
-
hollytga
Finally figured it out! I found another post with same issue from 2020.
The fix is:
When this happens, simply go to “Settings > GenerateBlocks” and hit the Regenerate CSS Files button – this will automatically rebuild the CSS files for you so you don’t have to manually re-save each page. -
Great! glad you figured it out 🙂
- You must be logged in to reply to this topic.