Closed codedcontainer closed 7 years ago
You have to specify content type as "image" and you can do it two ways: 1) set as parameter and mark all items as images:
$(".selector").fancybox({'type' : 'image'});
2) or add "data-fancybox-type" attribute to each link individually, like:
<a href="http://lorempixel.com/250/250/technics" class="fancybox" data-fancybox-type="image" rel="group">
btw, why do you have $('window').ready(..)
it should be $(document).ready(..)
Is it possible to add images that are automatically generated with FancyBox? I have several images that do not include an extension (.jpg, .png, .gif, etc) which I am generating from lorempixel.com. Below is an example of images that do not display on click: