Hi,
Your logic is correct.
If (wixLocation.path == ‘forum’) could never be truthy becouse wixLocation.path is Array type and ‘forum’ is string type (unless the length is empty ‘’ == []). It can be truthy if you replace wixLocation.path with wixLocation.path[the position of the correct string in the array].
If forum is the home page of your site wixLocation.path would be equals to [“”]
I’ve managed to get it working. But when I’m on the site, if I navigate to a category and then back to the home page, it doesn’t trigger the lightbox again. I physically have to reload the site in order to get the lightbox to popup again.
Is there any way to make it pop up everytime they navigate (within the site) back to the home page?
Also, it’s still popping up when I enter the site to a sub page / different page to the home screen?
Here is an example of when I use a link from facebook to one of the posts. Would be great if we could PM the ‘back of house / working examples’ so people can’t see my pre-site workings! (don’t mind the code bit, helps everyone along) (although I’ve read a fair few people mention that, so i’ll leave it alone!)
Here is an example of when I use a link from facebook to one of the posts. Would be great if we could PM the ‘back of house / working examples’ so people can’t see my pre-site workings! (don’t mind the code bit, helps everyone along) (although I’ve read a fair few people mention that, so i’ll leave it