Posted by ludo1960 on February 10, 2010 at 2:27am
Hello,
Just wondering if there is a recommended way of adding a stylesheet to your theme?
In mytheme.info file I have:
stylesheets[all][] = style.cssIs this the best place to add the new stylesheet? And if so what is the correct syntax?
Thanks
Comments
Yes, and exactly like that
Yes, and exactly like that unless iyou specifically want it for a specific medium.
works at bekandloz | plays at technonaturalist
As far as i know 2 standart
As far as i know 2 standart ways to add stylesheets are throught .info file and drupal_add_css() function.
Adding with .info file and syntax Adding style sheets
$|#|@
Ah
Sorry for confusion:
I already have a style.css and want to add another one, so what is the syntax for this in the info file?
Thanks..
If it's standart stylesheel
If it's standart stylesheel for all displays then copy/paste line you already have in .info file.
stylesheets[all][] = yourstylesheet.cssstylesheets[all][] = yourstylesheet2.css
simple as that.
$|#|@
And don't forget that they'll
And don't forget that they'll render in order so anything in subsequent stylesheets will overwrite anything of the same name in previous ones.
works at bekandloz | plays at technonaturalist
Thank you guys, for
Thank you guys, for confirming my "suspicions".. ;-)