SQSP Themes

View Original

Lightbox

Enable Lightbox for Gallery
(Product, Portfolio, Slideshow)

Automatically Open Lightbox After Form Submission

Open Lightbox On Hover

Disable Lightbox Plugin on Mobile

See this content in the original post

See this content in the original post

See this content in the original post

Then add this code to the form post submit field:

See this content in the original post

In the code, replace page_url with the page URL you want to open.

For example: <a href="#lightbox_thank-you" data-delay="1" class="js-post-submit-lightbox" hidden></a>

You can also abjust a delay before the lightbox opens. By default the delay is set to 1 second. To change it, edit the data-delay attribute. For example, to set a delay to 2 seconds, replace data-delay="1" with data-delay="2" in the code: <a href="#lightbox_thank-you" data-delay="2" class="js-post-submit-lightbox" hidden></a>


See this content in the original post

See this content in the original post