Extra Drupal Body Classes

You can programmatically add extra classes to the body tag via the themes template.php. function themename_preprocess_html(&$variables) { // Add a extra class to the body element $variables['classes_array'][] = 'body__bg-color'; } »

Add Conditional Stylesheets Drupal

If you ever need to add stylesheets based on old IE browsers this can be done via the template.php file with this function: function themename_preprocess_html(&$variables) { // If it's IE8 add this Stylesheet drupal_add_css(path_to_theme() . '/css/ie-lte-8.css', array('group' => CSS_THEME, 'browsers' => array('IE' => 'lte IE 8', '!IE' => FALSE), 'preprocess' => FALSE)); } »