Hi, thank you but I need to know how to add fancybox code to BUTTON element. There is only a checkbox for "onclick event". Please could you detailed describe me how to select a gallery and open it as fancybox gallery from a button element.
I want to open a gallery from a single image or button (see attachment please)
Thank you Max for your support. I hope I don't fatigue you but by this way I have to add all gallery images manually to the JS code. Could you guide me how to add them as gallery like in the links of the gem gallery: (class="gallery-item-link fancy-gallery" data-fancybox="gallery-5b2b720b85d2d"). Can I call the images from gallery ID?
Hi, how can I add the code to open a gallery in lightbox (fancybox) directly from a button?
I want to open a gallery from a button but only as lightbox
Hi,
Please read documentation: https://fancyapps.com/fancybox/3/docs/. Check "Example of opening image gallery programmatically".
Hi, thank you but I need to know how to add fancybox code to BUTTON element. There is only a checkbox for "onclick event". Please could you detailed describe me how to select a gallery and open it as fancybox gallery from a button element.
I want to open a gallery from a single image or button (see attachment please)
Thanks.
Hi,
Please share admin access. I will try to create example page on your site.
Please check.
Button has class "gallery-button" which used in Raw JS shortcode.
Thank you Max for your support. I hope I don't fatigue you but by this way I have to add all gallery images manually to the JS code. Could you guide me how to add them as gallery like in the links of the gem gallery: (class="gallery-item-link fancy-gallery" data-fancybox="gallery-5b2b720b85d2d"). Can I call the images from gallery ID?
Sorry, by default it's not possible. It's requires some code changes (it's not a couple lines of code).