Tagged: Lazy Load
-
AuthorPosts
-
February 27, 2024 at 7:06 am #125810TGGGuest
Hi, on our Sales page, the images for the testimonial customer are not showing up (https://ibb.co/RgTq9G5). We think it has something to do with lazy load settings. (Test-deactivating W3 Total Cache allowed all images to display properly.)
I added “skip-lazy” in the Additional CSS field of the testimonial block (Kadence Theme), but no effect (https://ibb.co/HCd4Q7d). I noticed in the Excluded Words section of W3TC, it says “skip_lazy” with an underscore (https://ibb.co/g70gzB8). I also tried with underscore, to no avail. Not sure if this matters in my css?
Sometimes the image displays properly (https://ibb.co/QNDjh4H) on various pages, but other times it does not. Any ideas on how to properly exclude an image in Kadence?
February 27, 2024 at 7:18 am #125824Marko VasiljevicKeymasterHello
Thank you for reaching out and I am happy to help.
When inspecting the source, the testimonial images have this class and style:
class="kt-testimonial-image lazy" style="background-image:
As you can see they are lazyloaded by the theme or the plugin you are using for this, and this may cause conflict.
In the W3 Total Cache there are various ways you can exclude images from being lazyloaded. One of them is to add skip_lazy, however, there is no skip_lazy added for those images as I can see.
In Perforamnce>User Experience, since those are background images, you can disable the option: Process background images, save all settings, and purge the cache. This will result in all the images withstyle="background-image:
not being lazyloaded by the W3 Total Cache.
You can also exclude those testimonial images from Lazyload by adding the class namekt-testimonial-image
to Perforamnce>User Experience>Exclude words section.
Make sure to save all settings and purge the cache.I hope this helps!
Thanks!
February 28, 2024 at 12:48 pm #126080TGGGuestYour solution worked perfectly. Thank you.
February 28, 2024 at 12:49 pm #126128Marko VasiljevicKeymasterHello,
Thank you for your feedback. Glad to know the problem is resolved
You are most welcome!We would really appreciate it if you could take a minute and post a review here. This will help us to continue offering a top-notch product to users.
Thanks! -
AuthorPosts
- The topic ‘Trouble with excluding an img from lazy load’ is closed to new replies.