开发者

compass hand in hand with wordpress [closed]

Closed. This question is off-topic. It is not currently accepting answers.

Want to improve this question? Update the question so it's on-topic for Stack Overflow.

Closed 11 years ago.

开发者_如何学编程 Improve this question

I've got a dilemma. Compass is creating the output file screen.css(and ie, print) but Wordpress requires the name style.css as the default theme stylesheet. How can I solve this? Can I change the compass default ouput name, or can I change Wordpress defaul "input" stylesheet scource?

-- Update --

I did solve the problem. But not naturally. What you can do is that you temporarily create a style.css in your theme directory with the required information. After that you can customize the stylesheet link href in the header.php just as usual. So the style.css in the root theme directory is just "fake".


You can change the path to the css file in header.php

change :

<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />

to

<link rel="stylesheet" type="text/css" media="all" href="http://www.yoursite.com/path/to/style/sheet.css" />
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜