Display script | WordPress.org

[ad_1]

Hello,

The script below allowing to not display the Exit intent if the visitor consults more than one page does not work:

var renaisonp_page_view_data = localStorage.getItem(‘brave_page_visited’);
renaisonp_page_view_data = renaisonp_page_view_data ? JSON.parse(renaisonp_page_view_data) : [];
if(renaisonp_page_view_data.length > 1){
var selectedPopupStep = document.querySelector(‘#brave_popup_78847__step__0 .brave_popup__step__’+window.brave_currentDevice)
selectedPopupStep.dataset.open = true;
}

The page I need help with: [log in to see the link]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer