Skip to content

Commit

Permalink
fix: child theme style.css loading rules (#389)
Browse files Browse the repository at this point in the history
  • Loading branch information
n0099 authored Jun 26, 2021
1 parent 5492883 commit be29d8f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions inc/theme-core.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "
Expand Down

0 comments on commit be29d8f

Please sign in to comment.