Okay - I'm no dummy, but apparently I'm doing something wrong.

I created a theme with Zenophile, but I would like to add an additional css file.

I've gone into my newtheme.info file and added a line that says

stylesheets[all][] = css/mynew.css

and it doesn't get included. I've read through some posts, and they say that I have to add a function call - but I thought that was what the .info file was for. Am I wrong?

Thanks

Comments

yukare’s picture

Have you cleared the drupal cache and the brownsercache after this change? This is cached, and if you do not clear the cache, you will use the cached version, not the one with your changes.

Fernando Correa da Conceição
http://jaguaribe.net.br

roger.ajith’s picture

drupal_add_css() function is suitable for adding additional css in theme.
Just specify the location of the .css file in this function. But the following information also needed in .info file.

stylesheets[all][] = css/mynew.css

If .css file is located in the same folder, you just indicate the name of css file with .css extension otherwise indicate the corresponding folder path.

refer this link : http://api.drupal.org/api/drupal/includes--common.inc/function/drupal_ad...