Is there a way to make it work also on archive pages or post listings?
Thanks in advance for such a useful plugin ??
I was wondering if there’s a way to open the gallery from a link and not by having the thumbnails.
]]>Awesome plugin! Unfortunately, it breaks HTML5 validation on my site which used to have 100% no errors (I worked so hard to get no errors).
Issue:
Original, before plugin: <img src=”https://picture.jpg” />
After plugin: <img src=”https://picture.jpg” / data-imagelightbox=”f”>
Problem: Forward slash appears before ‘data-imagelightbox’ instead of closing /> at the end.
Expected result: <img src=”https://picture.jpg” data-imagelightbox=”f” />
The plugin still works, but because of the forward slash appearing in the wrong place (the /> is getting split up), it doesn’t pass HTML5.
I’m guessing it has something to do with this preg_replace code in wp-imagelightbox.php file:
$pattern = “/<a(.*?)href=(‘|\”)(.*?).(bmp|gif|jpeg|jpg|png)(‘|\”)(.*?)>/i”;
Unfortunately, I don’t know how to code well enough to fix it by myself. I found this other fantastic WordPress implementation of ImageLightbox.js in WordPress Plugins repository: https://www.ads-software.com/plugins/…
It works great too and passes 100% HTML5 validation.
I would rather use your plugin as it has better interface appearance/CSS.
Please advise on how to fix. Thank you in advance. ??
]]>Is this for images and videos or for any content (like contact forms)?
]]>