By traceelements on
I've created a custom bartik subtheme in D7, but I can't figure out how to call my own ie stylesheets from my subtheme's css folder. The ie stylesheets are called from bartik's css folder. I tried installing the Conditional Stylesheets module, but it doesn't seem to work with a subtheme. Can anyone help?
Comments
Have you tried this in .info
Have you tried this in .info file ?
Thanks, yes, I did try that,
Thanks, yes, I did try that, and I guess it doesn't work with a subtheme?
I guess only zen theme have
I guess only zen theme have ability to put conditional stylesheet in its subtheme.
for others you can check out this module http://drupal.org/project/conditional_styles
That's the module that I
That's the module that I tried, but thanks for trying to help...
I figured out how to do it.
I figured out how to do it. For anyone else who is wondering, this is what I did.
I created a blank template.php file and put it in my subtheme folder.
Then I added this code to the file:
with the word "bartik" replaced with my subtheme name.
I concur
I too had difficulty getting the sub-theme to recognize the IE conditional comments. I did as traceelements did above and now have it working. My subtheme already had a template.php file in it so I just modified mine. Also, pay attention to the number of styles being loaded, and try turning on CSS aggregation to ensure your conditional comments will load properly. I had to clear the cache often to ensure that the styles were loaded properly.
I got the conditional styles module to work properly as well but thought it superfluous to the drupal_add_css() hook.
You saved my day
I was just looking for this issue and it saved my day thanks a bunch !
http://www.cuckolding.se