Remove unnecessary css from drupal website

13 years ago, October 19, 2011
Reading time: 1 mins

To remove unwanted-style.css from current website do the following in your template.php

function MYTHEME_css_alter(&$css){

         unset($css['sites/all/themes/MYTHEME/css/unwanted-style.css']);
   
}

Where MYTHEME will be your theme name.

Previous
Alter the JS paths included in theme.info through template.php
Next
Detect an iPad or an iPhone in PHP – HTTP_USER_AGENT
© 2024 Anil Maharjan