jQuery(function ($) {
var gallery = $('#my-gallery')
gallery.find('li').each(function () {
var caption = $(this).find('figcaption').text()
var link = $(this).find('a')
link.attr('data-title', caption)
})
});
jQuery(function ($) {
var gallery = $('#my-gallery')
gallery.find('li').each(function () {
var caption = $(this).find('figcaption').text()
var link = $(this).find('a')
link.attr('data-title', caption)
})
});