• Resolved Ann

    (@akg-free)


    Hi Fernando,

    your plugin solves it for non divi images in the content – I’ve hoped to find a solution for widget areas, too, because we had some projects with linked images in sidebars & footers.

    I’ve added the widgets to your plugins code & it works like charm.

    jQuery(‘.entry-content div:not(.et_pb_gallery_image) > a, .entry-content *:not(div) > a, .et_pb_widget div:not(.et_pb_gallery_image) > a, .et_pb_widget *:not(div) > a‘).children(‘img’).parent(‘a’).addClass(function(){return(($(this).attr(“href”).split(“?”,1)[0].match(/\.(jpeg|jpg|gif|png)$/) != null) ? “et_pb_lightbox_image” : “”);});

    Is there any reason you have limited the lightbox function to entry-content?

    Sunny regards
    Ann

    • This topic was modified 4 years, 7 months ago by Ann.
    • This topic was modified 4 years, 7 months ago by Ann.
    • This topic was modified 4 years, 7 months ago by Ann.
    • This topic was modified 4 years, 7 months ago by Ann.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Fernando Tellado

    (@fernandot)

    No, at all.

    Thank you for the extra code. I’ll add it to next versions ??

    Thread Starter Ann

    (@akg-free)

    Thank YOU for your plugin! ??
    Wonderful, than we don’t have to fix it manually after updates. ??

    Thread Starter Ann

    (@akg-free)

    Oh nooooo, issues with widget support? :-/
    We have no problems in our projects.

    Would you let us/me know what kind of problems occured?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Divi Lightbox for Widgets’ is closed to new replies.