最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

plugins - Auto trigger of popup

programmeradmin1浏览0评论

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 badge
Add a comment  | 

1 Answer 1

Reset to default 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");  
});

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论