Hi There,
I have created a lightbox popup with a bit of custom code so that it only shows once per visitor:
import {local} from ‘wix-storage’ ;
import wixWindow from “wix-window” ;
$w.onReady( function () {
if (!local.getItem( “firstTimePopupShown” )) {
setTimeout( function () {wixWindow.openLightbox( “NewsletterSubscription” );}, 3000 );
local.setItem( “firstTimePopupShown” , “yes” );
}
} );
Although, as Pop ups hurt the website’s SEO I’d like for it not to show up for users on mobile, is there some piece of code I can use to achieve this?
Thanks!