top of page
atlan logo green.png

Start a project

Start a project

Selected work
Creating a One Time Popup with Corvid (Wix Code)

Practical guides on Wix Studio, Velo, Squarespace, e-commerce and SEO — written from real client projects.

​

​
Share Post

Keep reading

Journal

Creating a One Time Popup with Corvid (Wix Code)

Writer: Atlan Design
Atlan Design
Dec 29, 2023
1 min read

Updated: Sep 19


One-time Wix announcement popup created with Corvid and session storage


// For full API documentation, including code examples, visit https://wix.to/94BuAAs

import wixWindow from 'wix-window';
import {session} from 'wix-storage';

$w.onReady(function () {

	//TODO: write your page related code here...
	session.removeItem("popupPromotion")

	if (!session.getItem("popupPromotion")) {
		wixWindow.openLightbox("Announcement")
		session.setItem("popupPromotion", "yes")
	}
});

Have fun!

Comments


bottom of page