您可以在Wordpress bloginfo page上看到bloginfo功能。使用<?php echo bloginfo('stylesheet_directory'); ?>/the/rest/of/your/path.css
所以在你header.php
替换此:
<link rel="stylesheet" href="<?php bloginfo('iww/cms/css/description1.css'); ?>" type="text/css" media="screen" />
<div><a class="atlwdg-trigger atlwdg-RIGHT" href="#">Feedback?</a></div>
有了这个:
<link rel="stylesheet href="<?php bloginfo('stylesheet_directory'); ?>/iww/cms/css/description1.css" type="text/css" media="screen"
编辑:
'stylesheet_directory' displays the stylesheet directory URL of the active theme.
所以请检查您的网址。如果您访问您的网站并查看您的源代码,则可以轻松检查它。有你的<link rel="" href="" type="" media="" />
标签。如果链接正确,请检查是否可以编辑另一个名称相同的文件。
我更新了<link>
标签:如果路径是错误的,在你的header.php
EDIT 2更正。你可以看到我删除了echo
。一个echo
不需要那里,它应该没有echo
(对我来说,它工作完美)。
请澄清,编辑header.php,你的意思是我应该在那里包含css调用? – Sarah
是的CSS应该包括在头标记 – Sunny