The ie.css file included in the zen folder actually made a few things worse for me when viewing my site in ie, so I'd like to use my own.
I added the following to mytheme/template.php
drupal_add_css(path_to_subtheme() .'/ie.css', 'theme', 'all');
However, my theme is still calling the one in the zen folder as well as my version:
<!--[if IE]>
<link rel="stylesheet" href="/sites/whirligig.dreamhosters.com/themes/zen/ie.css" type="text/css">
<link rel="stylesheet" href="/sites/whirligig.dreamhosters.com/themes/zen/whirligig/ie.css" type="text/css">
<![endif]-->
What do I need to do to prevent it from calling the one in the zen folder?
Comments
Comment #1
AaronCollier commentedDo you have a custom page.tpl.php? If not, you should create one and change the following lines of code:
Add in the path to your own ie.css or delete the call for the zen one. That should work.
Comment #2
johnalbinAaron's solution appears correct. Thanks, Aaron!
Comment #3
kriskd commentedI think I may have spoke too soon. This is what I have in my page.tpl.php
And here's the source code generated:
So, with that, my ie.css will over ride the one in the zen folder, right?
Comment #4
AaronCollier commentedThat way you'll have two ie.css files called. A better way might be something like this:
Comment #5
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #6
andrenoronha commentedI'd like to know that, but I use a subtheme of zen in drupal 6.6
and I haven't got these lines in my page.tpl.php
I have only this:
print $styles;where is this variable generated?
Comment #7
AaronCollier commentedYou can look at the generic page.tpl.php that should come in the main Zen folder.
Comment #8
andrenoronha commentedthank you for your answear, but I found it on the zen.info file...
Comment #9
sobi3ch commentedThat's right, you can find it in your
.infofile, around line 41