Lightbox MagnificPopup image captions
Hello,
I have my news page with the list of the news and their featured image. I would like to show the caption when I zoom on the image but it doesn't. The image has the alt attribute and the theme options are correct, in fact I've seen this piece of code inside the scripts.js (from line 1060):
var attr = {
autoFocusLast : false,
removalDelay : 160,
image : {
titleSrc : function( item ){
return ( lightbox_attr.title ) ? item.img.attr( 'alt' ) : false;
}
}
};
// image
$( 'a[rel^="lightbox"][data-type="image"]' ).magnificPopup({
autoFocusLast : attr.autoFocusLast,
removalDelay : attr.removalDelay,
type : 'image',
image : attr.image
});
I've tried to debug and discover that inside the titleSrc function the item.img doesn't refer to the real image but to another one, I think created by magnific popup, which does not have the alt attribute of the other one.
I think my theme options are correct because the variable lightbox_attr.title is true
Thank you for the support
Comments
I have passed it to the dev team, they will check it and we will give you a response.
thanks
Notice!
Please attach a link to this forum discussion.
Thanks