【发布时间】:2017-01-09 08:03:25
【问题描述】:
我正在尝试在我的网站上添加多种样式。对我来说,这段代码应该可以工作,但如果有人能告诉我为什么它不是那么好!
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中