I managed to change theme code and fix issue, still would like to find out why it happened.
******
Issue 2:
Background-Images are not being lazyloaded, I added the data-bg attribute and it is not working.
http://journeyschoolfranchise.com/
Hey @stemon,
to your first issue: I have no idea why that could be caused by the Lazy Loader, as it does nothing with background images automatically (and don’t uses regular expressions to modify markup that could go wrong)… Happy that you resolved it.
To your second issue: as far as I can see, the script runs on the section elements with your data-bg attributes, however, to make it work correct, the background images need to be removed from the normal style attribute (the background-image rule is present there, too).
Hope that helps,
Florian
Hi Florian, Thanks for quick response. I hadn’t realized we had to remove the bg-img, it does make sense tho.
Unfortunately, It didn’t work for all elements. I have just sent few hours trying to figure it out, but if you could help me out here.
The section element id=bt_section5c4c93b7208d3, has for column each with a bg-img but none is being uploaded.
Thanks again
Hi,
do you mean the elements »Training«, »License«, et cetera? They do not have the lazyload class, as far as I can see. Adding it should fix it.
Best,
Florian
You’re welcome, happy that it works now! 🙂