• Resolved ashu89

    (@ashu89)


    I am using exit intent popup on my website, when I closed this popup then it does not show for 1 day. And I have added a button also on exit intent popup. Want to use the same 1-day cookie on button also.
    Means, when I click on the button then the popup should not show for 1 day like its working for the close icon.

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support Amin – WPMU DEV Support

    (@wpmudev-support2)

    Hello @ashu89,

    I’m afraid there is no out of the box solution, however, I have asked developers if there is way on achieving that and I will let you know about their response.

    kind regards,
    Kasia

    Thread Starter ashu89

    (@ashu89)

    Thanks for your reply. It’s kind of urgent for me. Please let me know if there is any solution.

    Plugin Support Dimitris – WPMU DEV Support

    (@wpmudev-support6)

    Hello there @ashu89,

    could you give this snippet a try please? You can use it as is, in a new MU plugin file like wp-content/mu-plugins/hustle-edits.php
    (just create the /mu-plugins/ folder, if it doesn’t exist already):

    <?php
    add_action( 'wp_footer', function(){
        ?>
        
        <script type="text/javascript">
            (function($){
                $( document ).ready( function(){
                    $( '.hustle-modal .hustle-modal-cta' ).on( 'click', function( e ){
                        e.preventDefault();
                        $( this ).closest( '.hustle-modal' ).find('.hustle-modal-close svg').click();
                        let tab = window.open( $(this).attr( 'href' ), '_blank' );
                        if ( tab ) {
                            tab.focus();
                        }
                    } );
                } );
            })(jQuery);
        </script>
        <?php
    } );

    Let us know how that goes!
    Thank you,
    Dimitris

    Thread Starter ashu89

    (@ashu89)

    Sorry, but it’s not working. I click on Request now button but still, the popup is visible when refreshing home page.

    Plugin Support Dimitris – WPMU DEV Support

    (@wpmudev-support6)

    Hello @ashu89

    Could you please use the above code again and let me know in which page I could test this? And which is the button you’re talking about? Please advise! ??

    Thank you,
    Dimitris

    Thread Starter ashu89

    (@ashu89)

    I have a request now button on the popup. Can I just close the popup with request now button also and redirect to contact page.
    I want to close the popup and redirect to contact page with just request now button.
    I guess when popup will close then cookies also set to 1 day.

    Means, when I click on the request now button then the popup should not show for 1 day like its working for the close icon.

    https://desango.com/popup/1.png

    Hello @ashu89

    Hope you are doing well!

    I apologize for the late reply! I’ve visited your site and after clicking to “requests Now” button the pop-up redirected to another page. The home page after that didn’t show the pop-up for me.

    For now, I am marking this thread as resolved, please let us know if the issue will back.

    Kind regards,
    Nastia

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Exit intent popup cookies for custom button’ is closed to new replies.