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.
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.
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:
Create Source Galleries
Insert a Gallery block or section a page (e.g., /source-gallery)
Insert Lightboxify URLs
Your Lightboxify URL should look like this:
/source-gallery?lightboxify=true&lightboxify-mode=gallery#gallery-id
Link Images to Their Corresponding Lightboxify URLs
Link each image to its corresponding Lightboxify URL.
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.
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.