Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

prevent js execution in elementor

// try using jQuery to check if the body element has the elementor class
// if not, then its safe to execute your code :)
if(!jQuery('body').hasClass("elementor-editor-active"))
{
    // add your code here...
  	console.log('working!');
}
 
PREVIOUS NEXT
Tagged: #prevent #js #execution #elementor
ADD COMMENT
Topic
Name
5+2 =