Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #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

    • This topic was modified 2 years, 5 months ago by Chris_85.
    • This topic was modified 2 years, 5 months ago by Chris_85.
    • This topic was modified 2 years, 5 months ago by Chris_85.
    • This topic was modified 2 years, 5 months ago by Chris_85.
    #1355453

    i 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 ?

    #1355586

    Hi Guenni,

    thanks for your answer. You see another way to add a lightbox manually?

    Beste regards

    Chris

    #1355589

    You 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.

    #1355593

    Hey Guenni,

    thanks :-) No i checked… good works :-) I will try to use you code to trigger the lightbox to hard coded images… thanks :-)

    #1355698

    Hi,
    Glad to hear that Guenni007 has helped you, shall we close this then?

    Best regards,
    Mike

    #1355844

    yeah, worked!

    #1355870

    Hi,

    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

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Add lightbox manually’ is closed to new replies.