• Resolved Emielb

    (@emielb)


    Hi,

    By having a text link to an image it does open the image in a lightbox, but you can’t open it twice, because when you close the lightbox it creates this error:

    custom.min.js?ver=3.0.75:84 Uncaught TypeError: Cannot read property 'top' of undefined
        at o._getOffset (custom.min.js?ver=3.0.75:84)
        at custom.min.js?ver=3.0.75:84

    I suppose your plugin does only work on images, but do you know what the problem is (I think it’s related to the closing effect) and what I could try to make it work?

    I prefer using the builtin lightbox of Divi to avoid mixing two different lightbox scripts.

    PS: I put a test link on the word “arrondissement”.

    Thank you!

    • This topic was modified 7 years, 5 months ago by Emielb.
    • This topic was modified 7 years, 5 months ago by Emielb.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Sorry for no reply on this. I’ll ping the developer and see if we can get you an answer soon.

    Plugin Author Surbma

    (@surbma)

    Hi Emielb,

    I haven’t received any notification about your thread.

    It seems, that you have already removed the link from your text, so I can not see anything.

    However my plugin has nothing to do with normal text links, it is working only with img html tags. So your issue is more like a Divi issue, not this plugin’s issue.

    If you set your link again, I can take a look at it.

    Thread Starter Emielb

    (@emielb)

    Hi,

    Thank you for your answers.
    The link is now actually on the button “Consulter la carte des pizzas” (a little down the page).

    I’ve found a workaround by putting the image with 0 x 0 pixel size next to the text. I put the code below if it can help someone wanting the same result :

    <a class="et_pb_button et_pb_lightbox_image" href="https://demo.dclic.info/basic/wp-content/uploads/2017/09/carte-pizzas.jpg" target="_blank">Consulter la carte des pizzas<img src="https://demo.dclic.info/basic/wp-content/uploads/2017/09/carte-pizzas.jpg" alt="" style="width: 0;"></a>

    So this topic is resolved. Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Open image in a lightbox from a text link’ is closed to new replies.