1
我想在我的网站上有多个样式。对我来说,这段代码应该可以工作,但如果有人能告诉我为什么它不是那么好!WordPress的多个样式表
if (is_front_page()) {
wp_enqueue_style('custom-frontpage', get_template_directory_uri().'/stylee.css');
} else{
wp_enqueue_style('custom-frontpage', get_template_directory_uri().'/css/temp.css');
}
这位于我的functions.php
。
这是位于我的functions.php – Stephen