I have a question about stylesheets. I’ve put the CSS files from my theme in the /CSS directory. In my header.php file I’ve hard-coded the URL to the stylesheet like so:
<link rel="stylesheet" href="<?php echo bloginfo('template_directory'); ?>/css/stylesheet.css" type="text/css" media="screen" />
This works fine as long as I don’t open the template manager in the backend. As soon as I do that WordPress reverts to the standard theme because it thinks the stylesheet of my theme is broken (which makes sense: I have no style.css file in my theme directory).
How do I change the stylesheet URL so that the backend sees my stylesheet?
Thnx in advance!
- The topic ‘Custom stylesheet URL?’ is closed to new replies.