I am using / 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
I am using https://wordpress/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
Share Improve this question asked Nov 29, 2019 at 5:51 Ali RazaAli Raza 111 bronze badge1 Answer
Reset to default 0Well 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");
});
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744957402a4603276.html
评论列表(0条)