These sites each have different domains (see brackets above) so I need to make moving code between them fairly straightforward. I’ve found on other sites that the WPVivid plugin works well, and provides backups too.
WPVivid migrates my “dev” site to the “staging” site. Almost everything works, except where I’m using background images with GenerateBlocks containers. These are set with the full URL rather than an absolute path.
(i.e. “//fmp.web/wp-content/uploads/2020/10/image.jpg” instead of “/wp-content/uploads/2020/10/image.jpg”
Is there a way to make GenerateBlocks use relative paths from the root and leave out the domain?
I didn’t notice this at first, because the testing I do is from my laptop which is also the localhost server for the “dev” site. So, it happily served up the local dev images onto the staging site…!