• Resolved makissm21

    (@makissm21)


    Hi, data-fanсybox=”gallery” is not unique, you need to split the gallery, my code is lower.
    If you do, I’ll use your plugin.

    gallery.each(function(){
    var galleryid = jQuery(this).parent().parent().parent().attr(“id”);
    var title = jQuery(this).children(“img”).attr(“title”);
    var caption = jQuery(this).children(“img”).attr(“alt”);
    jQuery(this).attr(“data-fancybox”, galleryid).attr(“title”,title).attr(‘data-caption’,caption);
    });

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘data-fancybox not unique’ is closed to new replies.