Reply To: autodetection vs class="fancybox"

Your Account / Forums / Easy FancyBox Pro / autodetection vs class="fancybox" / Reply To: autodetection vs class="fancybox"

August 7, 2016 at 3:09 pm #6877

RavanH,
I should give you some more information of what I did after I received your advice.
As I wrote the other day, I use another lightbox plugin (dFactory’s Responsive Lightbox) along with Easy Fancybox. This plugin adds automatically the data-rel attribute you saw in the page source to the area tags of the image map, irrespective of its settings. This might look ugly, but during page rendering these attributes are completely ignored.
I tested the following scenarios after I deleted the trailing slashes and keeping class=”fancybox”.
1. dFactory’s Responsive Lightbox activated, .jpg autodetection and All in one Gallery turned on in Easy Fancybox:
data-rel attributes added automatically, image map works perfectly (with gallery navigation arrows)
2. dFactory’s Responsive Lightbox actvated, .jpg autodetection turned on and All in one Gallery disabled in Easy Fancybox:
data-rel attributes added automatically, image map works with single images, no gallery navigation arrows
3. dFactory’s Responsive Lightbox actvated, .jpg autodetection disabled and All in one Gallery enabled in Easy Fancybox:
data-rel attributes added automatically, image map works with single images, no gallery navigation arrows
The same settings tested with rel=”lightbox-gallery” added to the area tags gave the same results.
4. dFactory’s Responsive Lightbox deactivated, .jpg autodetection enabled and All in one Gallery enabled in Easy Fancybox:
data-rel attributes not added, image map works perfectly (with gallery navigation arrows)
5. dFactory’s Responsive Lightbox deactivated, .jpg autodetection turned on and All in one Gallery disabled in Easy Fancybox:
data-rel attributes not added, image map works with single images, no gallery navigation arrows
6. dFactory’s Responsive Lightbox deactvated, .jpg autodetection disabled and All in one Gallery enabled in Easy Fancybox:
data-rel attributes not added, image map works with single images, no gallery navigation arrows
The same settings tested with rel=”lightbox-gallery” added to the area tags gave the same results.

To make a long story short: images of image maps in an overlay are only shown with gallery navigation arrows when Autodetection is enabled as well as Autogallery. All rel attributes are ignored during page rendering.
So I finally found a workaround, not a solution however.
I converted the images to .jpeg, turned on Autodetection with .jpeg and Autogallery and, alas, it worked without conflicting with Responsive Lightbox, as all other images on my site are .jpg files.
But, of course, a clean solution would be much better.

Regards,
Klaus