Hi @betagoo,
Hope you’re doing well.
We are currently testing a patch for this issue and it’s looking good so far so it will be fixed with next release we’re preparing 🙂
Cheers,
Predrag
Thanks.
Temporary solution:
if ( jQuery( '.wph-modal' ).length > 0 ) {
jQuery( '.wph-modal .wph-modal--close a' ).on( 'click', function () {
Cookies.set('wphmodal', 'closed');
});
if ( Cookies.get( 'wphmodal' ) == 'closed' ) {
jQuery( '.wph-modal .wph-modal--close a' ).trigger( 'click' );
}
}
Hey betagoo,
Could you explain where to edit / add this piece of code?
Best,
Caspar
-
This reply was modified 6 years, 12 months ago by casparsmits.
You have to paste this code into javascript files into theme, usual named scripts.js
This code requires cookie script https://github.com/js-cookie/js-cookie