Removing Drupal CSS and module CSS at Drupal Zen

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
You are viewing a wiki page. You are welcome to join the group and then edit it. Be bold!

What is that??!!!!

To remove the Drupal Core CSS and Drupal Module CSS simply edit your template.php
insert this code snippet or edit the sample _preprocess function.

Remember to update [template_name] to your specified sub theme name.

<?php
/**
* Override or insert variables into all templates.
*
* @param $vars
*   An array of variables to pass to the theme template.
* @param $hook
*   The name of the template being rendered (name of the .tpl.php file.)
*/
function [template_name]_preprocess(&$vars, $hook) {
 
//$vars['sample_variable'] = t('Lorem ipsum.');
 
$css = $vars['css'];
  unset(
$css['all']['module']);
 
$vars['styles'] = drupal_get_css($css);
}
?>