Skip to main content
Tweeted twitter.com/#!/StackDrupal/status/361043412876660736
improved spelling, formatting, and punctuation; removed thanks
Source Link
avpaderno
  • 97.9k
  • 15
  • 164
  • 284

I am trying to add a file which is located in sites/default/files/color/theme-768/color.css using drupal_add_cssdrupal_add_css().

iI have tried drupal_add_css($filepath);, but it doesntdoesn't work. I tried putputting it in template.php and hook_init()hook_init(), but still it doesnt includeisn't included in the style tags of head section or anywhere.

How iI do include a cssCSS file like this using drupal_add_css(). Thanks in advance.drupal_add_css()?

I am trying to add a file which is located in sites/default/files/color/theme-768/color.css using drupal_add_css.

i have tried drupal_add_css($filepath); but it doesnt work. I tried put in template.php and hook_init(), but still it doesnt include in style tags of head section or anywhere.

How i do include a css file like this using drupal_add_css(). Thanks in advance.

I am trying to add a file which is located in sites/default/files/color/theme-768/color.css using drupal_add_css().

I have tried drupal_add_css($filepath), but it doesn't work. I tried putting it in template.php and hook_init(), but still it isn't included in the style tags of head section or anywhere.

How I do include a CSS file like this using drupal_add_css()?

Post Reopened by avpaderno
Post Closed as "Duplicate" by avpaderno
Source Link
Ram
  • 1.3k
  • 15
  • 37

How to add dynamic created css using drupal_add_css

I am trying to add a file which is located in sites/default/files/color/theme-768/color.css using drupal_add_css.

i have tried drupal_add_css($filepath); but it doesnt work. I tried put in template.php and hook_init(), but still it doesnt include in style tags of head section or anywhere.

How i do include a css file like this using drupal_add_css(). Thanks in advance.