Elementor dependency not met
-
Hello,
We have a JS issue with the wdt-custom-elementor-js.js file. It calls “elementor” object but the loading sequence is not right so we get a JS error “elementor not defined”.
After checking the code, I think you forgot to add a dependency to elementor in the following code:
public static function enqueueCustomElementorJs()
{
wp_enqueue_script('wdt-custom-elementor-js', plugin_dir_url(__FILE__) . 'js/wdt-custom-elementor-js.js', array('jquery'), WDT_CURRENT_VERSION, true);
wp_localize_script('wdt-custom-elementor-js', 'wdt_ajax_object', array(
'ajaxurl' => admin_url('admin-ajax.php')
));
}Only the dependency to “jquery” is specified explicitely when you call wp_enqueue_script. Can you fix this?
We do have a pro licence but you ask for so many details when we try to get support! I just want to report that bug.
Thank you!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Elementor dependency not met’ is closed to new replies.