I’d appreciate if somebody can help me with next question: I’d like to give a link to my wix-site (from external source) to specific lightbox that opens when I click on slide-gallery. (I have several galleries on my page.)
Is it possible in any way?
You can check what the previous website url was using the .referrer function. After that you can create a switch statement that opens the lightbox appropriate to its referrer.
If you run into some trouble with the code post it here.
Goodluck!
Majd
Thank a lot for getting back to me, Majd. It also great feature. But I need vise versa. I actually need to know the name of lightbox that appears when I click on my slide gallery - I don’t have anything in url, and I don’t have it in list of all light-boxes on site. Hence can not use openLightbox function. Is it any way to know it?
When you open your light box you can pass in a data object in it with the light box name. Then in the ligthbox page you can get that data object using the .getContext() function.
Thank you again Majd!
I’m sorry I should try to reformulate my question again - is it possible to somehow open lightbox that created automatically for Wix Pro Gallery, as I don’t create it myself and do not open, I just select “open in expend” in settings.