diff --git a/wp-content/themes/apus-theme/inc/enqueue-scripts.php b/wp-content/themes/apus-theme/inc/enqueue-scripts.php index 6565d27b..e46bc664 100644 --- a/wp-content/themes/apus-theme/inc/enqueue-scripts.php +++ b/wp-content/themes/apus-theme/inc/enqueue-scripts.php @@ -194,11 +194,8 @@ function apus_enqueue_custom_assets() { 'apus-main-js', get_template_directory_uri() . '/assets/js/main.js', array('apus-bootstrap-js'), - '1.0.1', // Cache bust: fix modal URL - array( - 'in_footer' => true, - 'strategy' => 'defer', - ) + '1.0.2', // Cache bust: remove defer for wp_localize_script compatibility + true // Load in footer (defer removed for wp_localize_script to work) ); // Localize script to pass theme URL to JavaScript