diff --git a/app/helpers.php b/app/helpers.php index e9f1036314..dfd566cbdb 100644 --- a/app/helpers.php +++ b/app/helpers.php @@ -52,6 +52,10 @@ function config($key = null, $default = null) */ function template($file, $data = []) { + if (remove_action('wp_head', 'wp_enqueue_scripts', 1)) { + wp_enqueue_scripts(); + } + return sage('blade')->render($file, $data); }