• Resolved Thomas McMahon

    (@twistermc)


    I’m trying to open the pop-up on page load, but it’s not working. If I do the auto open, it works, but I have other decisions that need to be made before opening the popup so I’m trying to use jQuery to open it. And it does nothing.

    jQuery( document ).ready(function() {
        if ( jQuery( "#popmake-3844" ).length ) {
            jQuery('#popmake-3844').popmake('open');
        } else {
        }
    });

    No errors, nothing. The ID is correct and if I put an alert into that if statement, the alert opens. So I know it’s getting to the popmake function. It’s just not doing anything.

    https://wordpress.org/plugins/popup-maker/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Daniel Iser

    (@danieliser)

    @thomas McMahon – Hmm. Do you have a link I can look at? Looks like it should be working, but it may be because in v1.3.9 we defer loading. Maybe try setting a timeout before triggering, or placing it after wp_footer.

    Thread Starter Thomas McMahon

    (@twistermc)

    Setting a timeout worked. Thanks!

    I assume that since I’m calling the popup, it voids all the rules around if the user has seen it before? I’d like to retain them if possible.

    Plugin Author Daniel Iser

    (@danieliser)

    @thomas McMahon – Correct, you would need to check the cookie yourself in this case. You may be better off with just adding custom conditions or using Advanced Targeting Conditions. Then let the built in JS do the work. v1.4 allows custom cookie names which may help as well depending which way you go.

    Thread Starter Thomas McMahon

    (@twistermc)

    Thank you for your help!

    Plugin Author Daniel Iser

    (@danieliser)

    @thomas McMahon – Not a problem, please take a moment to rate and review the plugin and or support.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Calling the popup from the footer isn't working.’ is closed to new replies.