diff --git a/includes/init.php b/includes/init.php index 5815d1e..43d282d 100644 --- a/includes/init.php +++ b/includes/init.php @@ -70,10 +70,11 @@ function dynamiques_enqueue_scripts() if (file_exists(get_template_directory() . '/css/app.css')) { wp_enqueue_style('parent-style', $parent_style, array(), $theme->get('Version')); } + wp_enqueue_script_module('carhop-js', get_template_directory_uri() . '/js/app.js', array(), $theme->get('Version')); // Enqueue child theme styles - wp_enqueue_style('tailpress', dynamiques_asset('css/app.css'), array('parent-style'), $theme->get('Version')); - wp_enqueue_script('tailpress', dynamiques_asset('js/app.js'), array(), $theme->get('Version')); + wp_enqueue_style('carhop-main-css', dynamiques_asset('css/app.css'), array('parent-style'), $theme->get('Version')); + wp_enqueue_script('carhop-main-js', dynamiques_asset('js/app.js'), array(), $theme->get('Version')); }