Divi Lightbox for Widgets
-
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
- The topic ‘Divi Lightbox for Widgets’ is closed to new replies.