fix: child theme style.css loading rules (#389)

pull/399/head
n0099 2021-06-26 09:27:09 +08:00 committed by GitHub
parent 5492883d93
commit be29d8f0c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 4 deletions

View File

@ -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 = "