I'm trying to do some customer-mandated inconsistencies in the styling of different fancyboxes.
I can't seem to figure out a way to distinguish between which fancybox is open using a class or an ID or anything.
Is there any way to do this?
Fancybox 2 has a wrapCSS
option which lets you add a custom class to the lightbox for styling.
Like so:
$(".fancybox").fancybox();
$(".photo").fancybox({
wrapCSS : 'photo-lightbox-class'
});
$(".video").fancybox({
wrapCSS : 'video-lightbox-class'
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With