diff --git a/inc/theme-core.php b/inc/theme-core.php index 55012ee..2d18504 100644 --- a/inc/theme-core.php +++ b/inc/theme-core.php @@ -45,10 +45,9 @@ function theme_autoload() if (kratos_option('g_fontawesome', false)) { wp_enqueue_style('fontawesome', ASSET_PATH . '/assets/css/fontawesome.min.css', array(), '5.15.2'); } - if (kratos_option('g_cdn', false) && !is_child_theme()) { - wp_enqueue_style('kratos', 'https://cdn.jsdelivr.net/gh/vtrois/kratos@' . THEME_VERSION . '/style.css' , array(), THEME_VERSION); - } else { - wp_enqueue_style('kratos', get_stylesheet_uri(), array(), THEME_VERSION); + wp_enqueue_style('kratos', ASSET_PATH . '/style.css', array(), THEME_VERSION); + if (is_child_theme()) { + wp_enqueue_style('kratos-child', get_stylesheet_uri(), array(), wp_get_theme()->get('Version')); } if (kratos_option('g_adminbar', true)) { $admin_bar_css = "