Hi Jeff,

Is it possible for me to remove all the css files that are loaded in the .info file just for the home page and just load a specific stylesheet for the from page?

Thanks,
Chris

Comments

Jeff Burnz’s picture

You can indeed, most people are using hook_css_alter() to do this sort of thing...

http://api.drupal.org/api/drupal/modules--system--system.api.php/functio...

drupalcms.ir’s picture

There is some problem to remove rtl styles on drupal version 7.9
The abow function will remove the css files from the theme, but the rtl versions are steel shows on the pages.
Please help me about this ?

Jeff Burnz’s picture

Component: Code » CSS/HTML
Status: Active » Closed (fixed)

You need to detect the language direction and write code to remove them also, see Adaptivetheme 7.x-3.x hook_css_alter() implementation for an example.