【发布时间】:2014-08-12 12:51:02
【问题描述】:
我上传了我自己的设计。我只是无法正确链接样式表。目前我的主题位于 wp-content-themes-(carrental->my theme folder name)-style.css 中。 我的 index.php 页面也和 style.css 在同一个文件夹中。
我是这样链接的:
// for the style.css
<link rel="stylesheet" href="<?php bloginfo('style.css'); ?>" type="text/css" />
// for image in index.php
<img src="<?php bloginfo('carrental'); ?>/assets/acr-logo-1.jpg" width="200" height="100">
请问正确的链接方式是什么?
【问题讨论】:
-
请参阅我的回答下添加的评论。