Hello,
It is not possible attach the lightbox via custom selectors because the slider is building dynamically. You can try to add the following JS code to "ARI Fancy Lightbox -> Settings -> Advanced -> Custom JS code" parameter:
Code: |
setTimeout(function() {
$('.slider').each(function(el, idx) {
var $slider = $(this);
var group = 'fancy-' + idx;
var $items = $('figure:not(.slick-cloned)', $slider);
$items.each(function() {
var $item = $(this);
var src = $item.find('img').data('src');
$item.attr('data-src', src);
$item.attr('data-fancybox', group);
});
$($items).fancybox();
});
}, 10);
|
Regards,
ARI Soft