views:

299

answers:

3

This is really urgent. I need to add a conditional stylesheet for IE6. However, in the chameleon theme there isn't any page.tpl. I download the conditional stylesheet module but it doesn;t work.

I'm using Drupal 6 btw.

A: 

ok i got it.

go to chameleon.theme. insert $output .= '<!--[if IE 6]> <link type="text/css" rel="stylesheet" media="all" href="/themes/chameleon/ie6.css" /> <![endif]-->';

p0larBoy
You might want to mark your answer as accepted then.
Mike Crittenden
I can only mark it after two days
p0larBoy
A: 

You can add it in info file of theme, like this:
conditional-stylesheets[if IE][all][] = ie.css
see Zen theme for example
Or can use manual embedding, see garland theme:

  <head>
<?php print $head ?>
<title><?php print $head_title ?></title>
<?php print $styles ?>
<?php print $scripts ?>
<!--[if lt IE 7]>
  <?php print phptemplate_get_ie_styles(); ?>
<![endif]-->

phptemplate_get_ie_styles defined in template.php of these file.


Nikit
This is only a zen theme feature and a Drupal feature. Since the OP is using Chameleon theme, this wont help.
googletorp
googletorp i know, see manual part then.
Nikit
A: 

Sorry, can someone walk me through this a bit better. I need this to function for internet 7 and 8 for the Marvin theme which is in the subdirectory of the chameleon. The MArvin theme uses the Charmeleon.theme as its driver.

Is it possible to do this...

$output .= ' (css code here) ';

Thanks so much!

MAds