Hello,
I would like to launch a lightbox image gallery from a button.
How can I do that?
Cheers,
i
Hey Itai!
You can simply add a button to your page and link it to your image and it would open the image in lightbox automatically :)
Regards,
Yigit
Yes, that works for a single image no doubt. But my designer wants to open a series of images. Like in the portfolio examples.
Is that possible?
thanks
Hi!
If your linking to an image in your body then they should all open up in a gallery in the magnific popup by default. If you do not want to display them in the page and just want them to be viewable in the popup then try some code like this.
your button goes here linking to image1
<a href = "URL to image2" style = "display: none;"></a>
<a href = "URL to image3" style = "display: none;"></a>
<a href = "URL to image4" style = "display: none;"></a>
Best regards,
Elliott
Hi everyone,
Thanks for your first help, I would like to do the same thing, put a link to a gallery on a button.
To imaged it, there are 6 parts on my onepage site, each part is composed with a big image gallery, a title, and a list.
When we click on image, we access to a gallery DIFFERENT in each part.
And I would like to access to galleries also using the title.
But, I when I use the code you given in the precedent message, I see all images of each galleries ! Do you see what I mean ?
Can you help me please ?
Best regards
Bubarama
Hi!
Your trying to separate the galleries correct? Surround the button and images with this.
<div class = "single_group">
</div>
Best regards,
Elliott