How to execute javascript function in custom widget in preview window?
-
The widget I created works properly in the frontend to allow the accordion function, however in the editor there is no effect even though the script file is loaded in the preview iframe when viewed with the browser inspector
elementor-preview-iframeWhat is the method to execute javascript in preview?
The code to load in window
add_action('elementor/init', function() { add_action('elementor/preview/enqueue_scripts', function() { self::scripts(); // the register and enqueue scripts list }); });
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘How to execute javascript function in custom widget in preview window?’ is closed to new replies.