fancyBox v3.1.20: Can't get captions to display

52 views
Skip to first unread message

Behrang Alavi

unread,
Aug 2, 2017, 11:32:43 AM8/2/17
to FancyBox
Hi
i use fancybox 3.1.20 and use it via data-fancybox="gallery"
i try to display a caption but what ever i do it doesnt work
title="some data" is there data-fancybox-title is there data-fancybox-caption is there
tried all, non works.
help appreciated.
greets

ray...@web.de

unread,
Aug 10, 2017, 3:16:15 AM8/10/17
to FancyBox
Hi Behrang,

I use a code like this and it works:

<div class="popup-gallery">
<a href="css/images/temp/gallery-14/lightbox-1.jpg" rel="author" class="image-show" data-fancybox="gallery" data-caption="Lorem ipsum dolor sit amet, consectetur adipiscing elit est">
<img src="css/images/temp/gallery-14/lightbox-1.jpg" alt="">
</a>
<a href="css/images/temp/gallery-14/lightbox-2.jpg" rel="author" class="image-show" data-fancybox="gallery" data-caption="Lorem ipsum dolor sit amet, consectetur adipiscing elit est">
<img src="css/images/temp/gallery-14/lightbox-2.jpg" alt="">
</a>
</div>

Hope that helps. Michael.
Reply all
Reply to author
Forward
0 new messages