- Home
- Articles
- Documentation
- Components
- The Popup window block
The Popup window block
A popup window is content in a window that opens over the page. You fill it like any other box: a newsletter form, an offer, a notice, a video.
Add it
Add the Popup Window block from the library. In the editor it is an ordinary box with a bar that says what it is; put any blocks inside. On the published page it stays hidden until it is time to open.
When it opens
- Opens : when the page loads (after a delay you choose), after the visitor scrolls part of the way ( Opens after scrolling ), when the visitor is about to leave, or only from a link.
-
To open it from a link or button, point the link to the popup's id, for example
#sjsp-offer, or give any element the attributedata-sj-popup-openwith the id.
How it closes
- Close button (×) , Click outside closes it and Esc key closes it : each can be switched on or off.
- Closes by itself after a number of seconds (0 means never).
- After a form inside is sent : it closes after a moment and does not come back.
Who sees it, and how often
- How often it shows to a visitor : every time, once per visit, once a day, once a week or once.
- Show on : all devices, computers only or phones only.
Look
- Position : center, top, bottom, bottom-right, bottom-left or full.
- Width : small, medium, large or extra large.
- Appears with : fade, zoom, slide up, slide down or none.
- Behind the window : nothing, a light layer, a dark layer or a blurred page. Page scrolling while it is open can be locked.
The settings are in the Style panel of the block. Visitors who prefer less motion get no animation.
Good to know: Do not open a popup the moment a page loads on every page; visitors find that annoying. A delay of a few seconds with once per visit works well.