2016-04-15 55 views
0

WordPress的媒體庫後不會加載我把這個在我的我的孩子主題的functions.php後不會加載任何東西:WP媒體庫增加孩子的.css

function custom_manage_styles_and_scripts() { 
    wp_register_style('custom-style', get_stylesheet_directory_uri() . '/css/custom-style.css', false, '1.0.0'); 
    wp_enqueue_style('custom-style'); 
} 
add_action('wp_enqueue_scripts', 'custom_manage_styles_and_scripts', 99); 

?> 

孩子.css文件工作正常。

任何想法?

回答

0

如果你只是入選風格會發生什麼?像這樣:

function custom_manage_styles_and_scripts() { 
wp_enqueue_style('custom-style', get_stylesheet_directory_uri() . '/css/custom-style.css', false, '1.0.0'); 
} 
add_action('wp_enqueue_scripts', 'custom_manage_styles_and_scripts', 99); 
+0

然後它會完美的工作。謝謝! – user3078100