One time pop-up: Wix tutorial code doesn't work

Hi,

I would like to create a custom code, so that a pop-up appears only once, when a user first visits my site.

I created a pop-up, under Layout Tools - Pop ups, and named it Announcement.

I tried running the code from this tutorial; Creating a One-Time Popup | Velo

But I cannot publish my site, as I get the following error:

Any help would be much appreciated!

Dejan

Based on the build log, the error seems to be on line 28 where you may have added an extra bracket unknowingly, or maybe it is part of some other code that you may have added. Your screenshot shows code only up to line 17.

Right click the code editor and click on Format and then make sure there are no red lines in your code for it to work perfectly.

1 Like