diff --git a/app/helpers.php b/app/helpers.php index d5d5446..f2ab4a9 100644 --- a/app/helpers.php +++ b/app/helpers.php @@ -52,7 +52,7 @@ function config($key = null, $default = null) */ function template($file, $data = []) { - if (remove_action('wp_head', 'wp_enqueue_scripts', 1)) { + if (!is_admin() && remove_action('wp_head', 'wp_enqueue_scripts', 1)) { wp_enqueue_scripts(); }