0

I am using https://wordpress.org/plugins/popup-anything-on-click/ for pop up. This plugin basically provides you two options to trigger the popup, one is through the link and the other is through the button.

I want to trigger the popup automatically when a page is loaded, no need to click button or link. Assitance required

Regards

1 Answer 1

0

Well the plugins itself says it open on click. I sometime use this trick, and that also help you too.

You have to trigger click on page laod. Suppose your button/link selector is class named "clickmetoopen" I write it like

$(document).ready(function(){
    $(".clickmetoopen").trigger("click");  
});

Or if your selector is id something like "clickmetoopen" the above code should be work for you like

$(document).ready(function(){
    $("#clickmetoopen").trigger("click");  
});

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.