Issue with CSS background images absolute path
-
Hi
I’m French but I’ll do my best to be clear…
I and a lot of people are using Local By Flywheel to make or stagging/dev websites on our own computers.
Local By Flywheel has a great tool that allow to build locally a website and give a Live Link URL to our customers, so they can see their future website.
The issue is when we use this Live Link URL to look at the website, all backgound images do not show up, and it’s because ou are using absolute path for your columns/sections background images.
I have found them into /wp-content/uploads/elementor/css
So I tried to change all the path to relative path, and bingo: it works, all the images are showing up!
> Before:
background-image: url(“https://mysite.dev/wp-content/uploads/2017/10/my-image.jpg”)
> After:
background-image:url(“/wp-content/uploads/2017/10/my-image.jpg”);There is somme post about this:
https://generatepress.com/forums/topic/slider-background-image-problems/
https://local.getflywheel.com/community/t/issues-with-absolute-to-relative-urls-for-background-images-now-with-screenshots-to-explain/242Could you consider to use relative path for all you CSS images?
Thanks
- The topic ‘Issue with CSS background images absolute path’ is closed to new replies.