# 664Edc42426Edd28A58F751E How To Open A Gallery Lightbox On Button Click
**Source:** https://beyondspace.studio/qanda/tag/664edc42426edd28a58f751e-how-to-open-a-gallery-lightbox-on-button-click
**Language:** French (France)

---

Beyondspace 
12/28/24

Beyondspace 
12/28/24

# When should I use ampersands (&) and the question mark (?) in Lightboxify URLs?

In Lightboxify URLs, the question mark (?) is used to start the query string, which contains the parameters for the Lightboxify functionality. The ampersands (&) are used to separate multiple parameters within the query string.

Example Format:

- **URL Structure:** /source-gallery?lightboxify=true&lightboxify-mode=gallery&lightboxify-theme=dark#gallery-block-id

  - The ? begins the query string.
  - The & separates each parameter (e.g., lightboxify=true, lightboxify-mode=gallery, lightboxify-theme=dark).

This format ensures that all the parameters are correctly passed to enable the lightbox with the specified attributes. For more details, you can refer to the Lightboxify URLs FAQ.

Read More

Beyondspace 
12/28/24

Beyondspace 
12/28/24

# Does Lightboxify URL have to be /source-gallery?

No, the URL does not have to specifically be /source-gallery. This URL is just an example. You can use any URL that points to the page that is containing the gallery you want to display in the lightbox. Just ensure that the URL correctly references your specific gallery.

For more details, you can refer to this blog post about opening dynamic gallery lightbox using Lightboxify URL.

Read More

Beyondspace 
12/28/24

Beyondspace 
12/28/24

# How to open a different lightbox gallery for each image in a grid gallery?

To open a different lightbox gallery for each image in a grid gallery, you can follow these steps:

1. **Create Source Galleries**

   - Insert a Gallery block or section a page (e.g., /source-gallery)
2. **Insert Lightboxify URLs**

   - Your Lightboxify URL should look like this:  
     /source-gallery?lightboxify=true&lightboxify-mode=gallery#gallery-id
3. **Link Images to Their Corresponding Lightboxify URLs**

   - Link each image to its corresponding Lightboxify URL.
4. **Save and Preview**

   - After linking all images, save the changes. Each image should now open its unique lightbox gallery when clicked.

For more detailed instructions, you can refer to this blog post.

Read More

Beyondspace 
12/27/24

Beyondspace 
12/27/24

# Does each source gallery need to be on a separate page?

No, each source gallery does not need to be on a separate page. You can put all separate source galleries on a single page and link to them using their Section IDs or Section Anchor IDs (if you use a Gallery section) or Block IDs (if you use a Gallery block). For more details, you can refer to this post about IDs configuration.

Read More