Thread Starter
Dr.Zee
(@drzee)
I got it.
It turned out that every browser but Firefox was stripping the
data-nplmodal-gallery-id
attribute from the trigger element. I added a unique class to each trigger element
<div class="gallery-1070">
then appended the data attribute with jQuery
$(".gallery-1070").attr("data-nplmodal-gallery-id", 1070);
and now it’s working beautifully. Clearly this can’t be used on a site that’s constantly adding galleries like this, but for a site that doesn’t change often, this is just fine.
If you could work on a display plugin that just wraps an image with a gallery trigger, that would be much appreciated.
Thread Starter
Dr.Zee
(@drzee)
Correction: The classes on the trigger image are
class="mceItem nextgen_pro_lightbox"