Hey all,
Trying to figure out how to get a Lightbox to open every time someone clicks on the homepage. Right now, when a user visits my website they only see the Lightbox the first time the homepage loads. If they visit the homepage again in the same session the Lightbox does not open again. Is there any way to ensure it opens EVERY time a user visits the homepage in the same session?
Thanks in advance for anyone willing to help!
Hi, Nicole_Robinson !!
Regarding that, I believe it can be achieved by simply adding very basic Velo code. If it’s fine to open it every time without checking if it was previously opened, you just need to add the following code to the Velo code input panel on your homepage.

import wixWindowFrontend from "wix-window-frontend";
$w.onReady(function () {
wixWindowFrontend.openLightbox("YourLightboxName");
});
If you want to learn more basic operations for Lightbox via Velo, please visit the following link and check the section starting with “Example shown:”.
Also, if you add this code, please make sure to disable the setting for automatically displaying the lightbox in the editor.
https://dev.wix.com/docs/velo/api-reference/wix-window-frontend/open-lightbox
You need to go into the lightbox settings to set the triggers.
By default, it is set to display once on the first page the visitor opens. Toggle off display only once. Then set the Homepage as the trigger.