-
AuthorPosts
-
June 16, 2022 at 9:20 am #1355442
Hi, i have a hard thml code and want to use the standard enfold lightbox. Therefor i added the following classes. But the lightbox does not appear. Can you help pleade?
<div class="tab-img-wrap"> <div class="avia-image-container avia-align-center "><div class="avia-image-container-inner"><a class="lightbox avia_image" href="https://test.de/wp/wp-content/uploads/2022/06/1cbm_flaechen-03.jpg" target="_blank"> <picture class="avia-image"> <source type="image/webp" srcset="https://test.de/wp/wp-content/uploads/2022/06/1cbm_flaechen-03.jpg.webp"> <img class="avia-image" src="https://test.de/wp/wp-content/uploads/2022/06/1cbm_flaechen-03.jpg"> </picture></a></div> </div></div>
look forward to hear from you
Thanks
June 16, 2022 at 10:21 am #1355453i am not sure if the magnificPopup script supports webp. Unfortunately the developer is not well reachable at the moment; Dmitry Semenov is a Ukrainian developer. The documentation does not say if and if yes how to set it.
Edit: it does support webp – see webp and jpg : https://enfold.webers-webdesign.de/tooltips/
But: Enfold supports webp and most modern browser as well : Can I Use
For all those IE 11 ( and earlier ) users ?June 17, 2022 at 11:10 am #1355586Hi Guenni,
thanks for your answer. You see another way to add a lightbox manually?
Beste regards
Chris
June 17, 2022 at 11:44 am #1355589You can see that webp on my test page (bottom left) also works in the lightbox ( and even with srcset usage ). So my question is first of all about the sense for a fallback image. IE11 has a global fraction of only 0.85% !
So keep in mind that while you may satisfy those IE11 users, you will lose some of the other browser users due to performance loss.anyway – yes there are methods to use the magnificPopup with your own triggers. But to give advice – it is best to see the page.
June 17, 2022 at 1:03 pm #1355593Hey Guenni,
thanks :-) No i checked… good works :-) I will try to use you code to trigger the lightbox to hard coded images… thanks :-)
June 18, 2022 at 5:48 pm #1355698Hi,
Glad to hear that Guenni007 has helped you, shall we close this then?Best regards,
MikeJune 20, 2022 at 2:15 pm #1355844yeah, worked!
June 20, 2022 at 7:43 pm #1355870Hi,
Thanks for letting us know, I’ll close this thread for now then. Please open a new thread if you should have any further questions or problems.
Best regards,
Rikard -
AuthorPosts
- The topic ‘Add lightbox manually’ is closed to new replies.