Closed (fixed)
Project:
Zen
Version:
5.x-1.1
Component:
IE Problems
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
20 Jul 2008 at 09:09 UTC
Updated:
23 Aug 2008 at 06:01 UTC
I have the following in my page.tpl.php
<!--[if IE 6]>
<?php if ($subtheme_directory && file_exists($subtheme_directory .'/ie6.css')): ?>
<link rel="stylesheet" href="<?php print $base_path . $subtheme_directory; ?>/ie6.css" type="text/css">
<?php else: ?>
<link rel="stylesheet" href="<?php print $base_path . $directory; ?>/ie6.css" type="text/css">
<?php endif; ?>
<![endif]-->
The above code is mostly based on http://drupal.org/user/254346. I have also tried modifying the code to read as
<!--[if IE 6]>
<link rel="stylesheet" href="<?php print $base_path . $directory; ?>/ie6.css" type="text/css">
<?php if ($subtheme_directory && file_exists($subtheme_directory .'/ie6.css')): ?>
<link rel="stylesheet" href="<?php print $base_path . $subtheme_directory; ?>/ie6.css" type="text/css">
<?php endif; ?>
<![endif]-->
or
endif;
The above code is mostly based on http://drupal.org/user/254346. I have also tried modifying the code to read as
<!--[if IE 6]>
<link rel="stylesheet" href="<?php print $base_path . $subtheme_directory; ?>/ie6.css" type="text/css">
<![endif]-->
There is a custom page.tpl.php file in the Zen subtheme and the ie6.css file exists in the correct sub theme folder yet none of the changes in the stylesheet is applied in ie6. The changes applied to the built in ie.css works fine but if I need to apply a change only to ie6, it just doesn't seem to be working.
Comments
Comment #1
stevebayerin commentedSomehow while copy/pasting or uploading there was extra text. Please ignore:
The above code is mostly based on http://drupal.org/user/254346. I have also tried modifying the code to read as
Comment #2
echoz commentedYour examples should work (for drupal5), unless you've just happened to reach ie's limit of 31 stylesheets. Are you using a lot of stylesheets, or many modules that have their own stylesheets? If so, search around for solutions being worked on for this, enable CSS aggregation (not good during development) or consolidate some css.
Comment #3
stevebayerin commentedThanks echoz,
That could be it. I can manually verify there are 29 style sheets in use. That could be why.
Comment #4
mike stewart commentedseems this was resolved