【发布时间】:2016-07-04 10:09:01
【问题描述】:
我只想为我的 wordpress 网站上的一个页面创建一个独特的样式。这是我在functions.php 或style.css 中做的事情,还是我需要创建一个新的页面模板?无论哪个选项正确,我如何定位相关页面?
【问题讨论】:
-
在
header.php添加条件:-<?php if($_SERVER['REQUEST_URI'] == 'give your page full url here'){?> link of style sheet <?php}else{?> link of all other style sheets <?php}?>
标签: php css wordpress styles themes