It’s the first time i’m using Flywheel, and i love it.
However i’m having an issue with background-images (built with Elementor), they don’t show up when i go through live link. When i inspect element with Chrome, it appears that background-img URL is still mywebsite.local/XXXXX instead of http://e6fdaXXX.ngrok.io/XXXXX
It seems like Absolute URLs aren’t replaced in assets such as CSS, but i can’t provide to Elementor a relative URL in that special situation (background image)
i’ve the same problem, i think a FIX is due to let external people to view the internal website at full.
I’m using many background images and is terrible to tweak all CSS
Background images are saved in a CSS file which has an absolute URL. To avoid migrating issues with the background images without having to write a script, you can define the CSS Print Method to be inline instead of using external files, if you want. This can be done by going to Elementor > Settings > Advanced > CSS Print Method > Internal Embedding> CSS print method: inline, on your WP dashboard.
Here’s what got elementor background images working on local devices for me. I’m using Local WP with live links for device testing:
In your local environment set the local Elementor css print method to “internal embedding” (Elementor > Settings > Advance)
Conduct a url rewrite (old environment URL to new environment URL)
After I did this, in my local environment, my background images showed up in local devices. I then did a push to staging and prod (database included) to see if the background images were still visible and they were. Everything worked.
For production - Elementor cites performance enhancements when having Elementor’s css print method set to “external”.
If you want to do this on prod, after you’re done with your device testing, follow these steps:
In your prod environment set the local Elementor css print method to “external file” (Elementor > Settings > Advance)
Conduct a url rewrite (old environment URL to new environment URL)
So let’s say I want that image to load at “/wp-content/uploads/2020/07/assisted-living.jpg” instead.
How do I use the Replace URL tool to accomplish this? I don’t want to hose my local site or break the images, so I’d appreciate more info on how you accomplished this.