# Create Exception to Wix Lightbox

**URL:** <https://forum.wixstudio.com/t/create-exception-to-wix-lightbox/12897>\
**Category:** Ask the community\
**Tags:** question, code\
**Created:** [January 26, 2019, 6:39pm UTC](https://forum.wixstudio.com/t/create-exception-to-wix-lightbox/12897 "2019-01-26T18:39:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![christopher](https://avatars.discourse-cdn.com/v4/letter/c/439d5e/32.png) [@christopher](https://forum.wixstudio.com/u/christopher)\
**Post date:** [January 26, 2019, 6:39pm UTC](https://forum.wixstudio.com/t/create-exception-to-wix-lightbox/12897/1 "2019-01-26T18:39:23Z")

</div>

I’m using the following to post a Lightbox on all pages of my site:

import {  
local  
}  
**from** ‘wix-storage’;  
import wixWindow **from** ‘wix-window’;

$w.onReady( **function** () {  
**if** (!local.getItem(“firstTimePopupShown”)) {  
wixWindow.openLightbox(“Subscribe”);  
local.setItem(“firstTimePopupShown”, “yes”);  
}  
});

What I’d like to do is suppress this Lightbox from coming up on some of my pages regardless if it is their first time visiting. What is the process for doing so using this code/function?

---

<div class="post-metadata">

**Author:** ![\_tal](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/_tal/32/669_2.png) [@\_tal](https://forum.wixstudio.com/u/_tal)\
**Post date:** [January 27, 2019, 8:26am UTC](https://forum.wixstudio.com/t/create-exception-to-wix-lightbox/12897/2 "2019-01-27T08:26:21Z")

</div>

Hi,  
I’m not sure that I fully understand what you wish to achieve. Do you wish the lightbox to be opened on a list of known pages? on all pages? Can you please clarify?

Thanks,  
Tal.
