我的 Wordpress 有问题,我创建了所有需要的文件,包括 style.css index.php 等,但页面没有样式。在标题中,除其他外,我把这个
<link rel="stylesheet" type="text/css" href="<?php bloginfo('template_url'); ?>/css/bootstrap.css" />
<link rel="stylesheet" type="text/css" href="<?php bloginfo('template_url'); ?>/css/bootstrap-responsive.css" />
<link rel="stylesheet" type="text/css" href="text/css" href="<?php bloginfo('template_url'); ?>/css/style.css" />
原文由 user3188096 发布,翻译遵循 CC BY-SA 4.0 许可协议
就我而言,我没有链接 CSS。所以我通过执行以下操作解决了它:
之后,我必须在名为 functions.php 的主题文件夹中创建另一个新文件,并使用以下代码在此文件中链接 style.css 。