• Resolved isaakgeo

    (@isaakgeo)


    Hello,
    On this page: [ redundant link removed ]
    Can you help me locate the right css selector to use in the Custom grouping selectors field in plugin settings?

    Thank you

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    Do not use short links in these forums, that has been abused in the past and is expanded when found. I have expanded yours into the link field.

    Plugin Author arisoft

    (@arisoft)

    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:

    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);

    • This reply was modified 1 year, 9 months ago by arisoft.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘css selector’ is closed to new replies.