Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #497370

    Hello,

    I would like to launch a lightbox image gallery from a button.
    How can I do that?

    Cheers,

    i

    #497435

    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

    #497451

    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

    #497756

    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

    • This reply was modified 9 years, 3 months ago by Elliott.
    #507591

    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

    #508015

    Hi!

    Your trying to separate the galleries correct? Surround the button and images with this.

    <div class = "single_group">
    
    </div>
    

    Best regards,
    Elliott

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.