Thursday, January 27, 2022

[FIXED] How to call Wordpress Elementor Popup from Code

Issue

I want to call an Elementor Popup from custom code (HTML, CSS, Javascript). Does anyone know how to do that? Thanks in advance!


Solution

Here's how to call the popup via javascript:

$(document).ready(function(){
    elementorProFrontend.modules.popup.showPopup( {id:2041}, event);   
});

Make sure to replace the id with yours.



Answered By - Igor Aleksic

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.