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
).
- The
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.