我想如果你改变你的wp_enqueue_style 对于下面的一个,它将完美地工作。这是我自己做的functions.php 文件
function wpse_scripts() {
// Theme Stylesheet
wp_enqueue_style(\'style\', get_stylesheet_uri());
}
add_action(\'wp_enqueue_scripts\', \'wpse_scripts\');
虽然你可以用你的方式来做,但你只是添加了一个
/ 在您的
style.css 你不需要这样。通过添加
/ 您的脚本正在查找名为
style.cssfunction wpse_scripts() {
// Theme Stylesheet
wp_enqueue_style(\'style\', get_stylesheet_directory_uri() . \'style.css\');
}
add_action(\'wp_enqueue_scripts\', \'wpse_scripts\');
你这样做的方式
以下是更改functions.php 在您的孩子主题中。
Child Theme