2016-04-15 105 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