mirror of https://github.com/vtrois/kratos
fix: child theme style.css loading rules (#389)
parent
5492883d93
commit
be29d8f0c6
|
@ -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 = "
|
||||
|
|
Loading…
Reference in New Issue