Javascript Not Work in Elementor Edit Page
-
Hi i just added this codes for register scripts, But it doesn’t work in Elementor edit page but work perfectly in preview page!
public function __construct($data = [], $args = null) { parent::__construct($data, $args); wp_register_style( 'slick-style', Url_Plugin . 'assets/css/slick.css', array() , '1.8.1' ); wp_register_script( 'jquery-slick', Url_Plugin . 'assets/js/slick.min.js', [ 'elementor-frontend' ], '1.8.1', true ); wp_register_script( 'scripts', Url_Plugin . 'assets/js/scripts.js', array( 'jquery' ), '1', true ); } public function get_script_depends() { return [ 'jquery-slick', 'scripts' ]; } public function get_style_depends(){ return [ 'slick-style' ]; }
And one script file register outside of Elementor widget and this script file doesn’t work too!!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Javascript Not Work in Elementor Edit Page’ is closed to new replies.