• Hi Damian,

    small Q; is it possible to Hide the POP-up also in the WP source code when pop-up was shown/click away.

    Now (iframe) data is still shown in the sourcecode, even if the pop-up isn’t shown to a visitor because he already did and has a cookie for not showing.

    Hope to here from you if there is a solution or if it is possible in the premium version?
    KR,
    B.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Damian

    (@timersys)

    you could create a tiny script to remove it from source after the page is loaded. Adding in functions.php something like this should help (not tested)

    add_action ('spu/popup/after_popup', 'add_remove_script');
    
    function add_remove_script($box) {
        if( $box->ID != '555' ) 
          return;
    ?>
    <script>
    if( spuReadCookie( 'spu_box_555') ) {
     jQuery('#spu-555').remove();
    }
    </script>
    
    <?php
    }
    Thread Starter bb15

    (@bb15)

    Thanks Damian,
    will the pop-up still show up after the xx day cookie time is expired?

    KR,
    B.

    Thread Starter bb15

    (@bb15)

    Hi Damian can you responded please?
    And does the Pro version work in the same way?

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Hide source code when pop-up was shown’ is closed to new replies.