How to run Javascript on your Elementor popup

Facebook
Twitter
Reddit
WhatsApp

jQuery

				
					jQuery(window).load(function() {
				jQuery.each( elementorFrontend.documentsManager.documents, ( id, document ) => {
					if ( document.getModal ) { // It's a popup document
						document.getModal().on( 'show', () => {
							console.log( 'Run your script here' );
						} );
					}
				});
			});	
				
			

Credit/Source - By formulaclick

Subscribe
Notify of
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments

More to explorer

0
Would love your thoughts, please comment.x
()
x

45 Minute Wordpress Support

Get your Wordpress questions answered and your Wordpress issues resolved.