top of page

Published: January 22, 2020

Updated: January 22, 2020

5

153

Creating a One Time Popup with Corvid (Wix Code)

Category(s)

-Side Menu-
Category

Title

Here is the helpful code to get you going! Let me know if you need any more assistance in the comments on YouTube or contact me at the bottom today!

What Was Covered:

- Add lightbox (Be sure to check out the Wix lightbox tutorial - http://bit.ly/39n4JUB)

- Adding content and rearranging information to put on the lightbox

- Adding code to create a one-time popup

- Preview action to see if it is working properly

Code Snippet to follow along with the video:


Client-Side "SITE" Code

// 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")
	}

});

Comentarios


SIGN UP

Get notified of upcoming articles.

Get Started
View More Categories
Images
Animations
Recent Post

Haga clic aquí para agregar su

propio contenido, o conectarse.

creativelynino_00001.png
YouTube

Haga clic aquí para agregar su

propio contenido, o conectarse.

creativelynino_00001.png
YouTube

Haga clic aquí para agregar su

propio contenido, o conectarse.

creativelynino_00001.png
YouTube

Haga clic aquí para agregar su

propio contenido, o conectarse.

creativelynino_00001.png
YouTube

Did this help?

Yes
No

Thanks, we'll pass on your feedback to improve our services.

Survey
Contact
Feedback

TAKE THE SURVEY

We would love to hear from you.  We strive to create content that is valuable to all persons with and without coding experience.  Please fill out this anonymous survey about your Corvid learning experience.
GET STARTED
bottom of page