Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Predrag – WPMU DEV Support

    (@wpmudev-support1)

    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

    Thread Starter betagoo

    (@betagoo)

    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.
    Thread Starter betagoo

    (@betagoo)

    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

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Pop Up shown less than not work’ is closed to new replies.