I’m trying to create a function where a lightbox launches when a client lands/redirects a certain page (the very first page of my forum). This is what I have so far but it doesn’t seem to be opening:
import wixLocation from 'wix-location';
import wixWindow from 'wix-window';
$w.onReady(function () {
if (wixLocation.path == 'forum') {
wixWindow.openLightbox('Quick Menu');
}
});
My forum is on my home page and it’s been renamed to ‘packerpal’.
It would need it to launch when the client lands/ redirects on any of the main forum pages.
Pretty cool site - I’ve already started packing my bags.
I’m not sure what the problem is. I go to your site and I get the lightbox (menu at the bottom of the page). Not sure what you’re supposed to have or not have.
Let me know what you’re try to do and I’ll play with it.