Skip to content
Permalink
Browse files

子テーマstyle.cssの読み込み関数の追加

  • Loading branch information...
yhira committed Jun 14, 2018
1 parent f138c4f commit e1af476d54742ea05682ec9a1f00209c07c8a085
Showing with 14 additions and 7 deletions.
  1. +4 −6 lib/scripts.php
  2. +10 −1 lib/utils.php
@@ -91,13 +91,11 @@ function wp_enqueue_scripts_custom() {
//子テーマスタイルの呼び出し
//
////////////////////////////////////////////////////////////////
if (is_child_theme()) {
///////////////////////////////////////////
//子テーマのstyle.css
///////////////////////////////////////////
wp_enqueue_style( THEME_NAME.'-child-style', get_stylesheet_directory_uri() . '/style.css' );
}
///////////////////////////////////////////
//子テーマのstyle.css
///////////////////////////////////////////
wp_enqueue_style_theme_child_style();
////////////////////////////////////////////////////////////////
//
@@ -253,7 +253,16 @@ function wp_enqueue_style_theme_style(){
}
endif;
//スキンstyleの読み込み
//子テーマstyle.cssの読み込み
if ( !function_exists( 'wp_enqueue_style_theme_child_style' ) ):
function wp_enqueue_style_theme_child_style(){
if (is_child_theme()) {
wp_enqueue_style( THEME_NAME.'-child-style', get_stylesheet_directory_uri() . '/style.css' );
}
}
endif;
//スキンスタイルの読み込み
if ( !function_exists( 'wp_enqueue_style_theme_skin_style' ) ):
function wp_enqueue_style_theme_skin_style(){
if ($skin_url = get_skin_url()) {

0 comments on commit e1af476

Please sign in to comment.
You can’t perform that action at this time.