Hi,

I'm trying to make this work since some time and read the issues here and cannot find any reference to the problem I'm confronted to.

Using

  • drupal-6.25,
  • adaptivetheme subtheme (adaptivetheme enabled) 6.x-2.2
  • conditional_styles 6.x-1.2

Added this to my theme info file :

stylesheets-conditional[IE 7][all][] = css/theme/ie7.css
stylesheets-conditional[IE 8][all][] = css/theme/ie8.css
stylesheets-conditional[IE][all][] = css/theme/ie.css

Emptied the cache numerous times but I have no luck, nothing in the HTML and no variable are created.

I'm sure I'm missing something :)

Comments

marc angles’s picture

Title: Variables not created ? » typo on the module page
Component: Miscellaneous » Documentation
Category: bug » support
Status: Active » Closed (works as designed)

Ok...

was it a typo ?

stylesheets-conditional rather than conditional-stylesheets ?

Anyways, this is now working with :

conditional-stylesheets[if IE 7][all][] = css/theme/ie7.css
conditional-stylesheets[if IE 8][all][] = css/theme/ie8.css
conditional-stylesheets[if IE][all][] = css/theme/ie.css

My error was to copy/paste in the description of the module which states :

; Set the conditional stylesheets that are processed by IE.
stylesheets-conditional[lt IE 7][all][] = ie6-and-below.css
stylesheets-conditional[IE 9][all][] = ie9.css
stylesheets-conditional[IE][print][] = ie-print.css