Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
load only one css - drupal
<?php
if(strstr($_SERVER['REQUEST_URI'], "signage")) {
drupal_static_reset('drupal_add_css');
drupal_add_css(path_to_theme() . '/css/signage.css', array('group' => CSS_THEME, 'every_page' => true, 'weight' => 9999));
}
// Thank you http://leepowers.net/drupal-css-load-order
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment