From dbcaf636761e34e7e2f02d46b2f41bc8e08cbd23 Mon Sep 17 00:00:00 2001 From: Antoine M Date: Mon, 9 Jun 2025 14:57:13 +0200 Subject: [PATCH] REFACTOR Cleaning scripts and assets Call --- includes/init.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/includes/init.php b/includes/init.php index a04896a..ff2c662 100644 --- a/includes/init.php +++ b/includes/init.php @@ -73,8 +73,9 @@ function dynamiques_enqueue_scripts() wp_enqueue_script_module('carhop-js', get_template_directory_uri() . '/js/app.js', array(), $theme->get('Version')); // Enqueue child theme styles - 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')); + wp_enqueue_style('dynamiques-main-css', get_stylesheet_directory_uri() . '/css/app.css', array('parent-style'), $theme->get('Version')); + wp_enqueue_script('dynamiques-main-js', get_stylesheet_directory_uri() . '/js/app.js', array(), $theme->get('Version')); + }