Hi, i have a slider with images on my page. The images link to a portfolio page. On that page I use the gallery item, with “big image only, other images can be accessed in Lightbox”. option. I would like to show the Lightbox immediately, not first the big image. Is that possible?
Hey raymondkramer,
How about opening the gallery on page load? If I understand correctly your gallery has one large image with other thumbnails, so the class of the large one should be “avia-gallery-big”
So if you add this code to a code block element on the page, every time the page is opened your gallery will be shown in the lightbox.
You could create a special page that is only meant to be linked via your slider, if you didn’t want other people landing on it by mistake.
Try adding this code in a code block element on the page that has your gallery
<script>
(function($){
$(window).load(function() {
$('a.avia-gallery-big').trigger('click');
});
})(jQuery);
</script>
Best regards,
Mike