Skip to content

Instantly share code, notes, and snippets.

@opi
Created July 17, 2013 07:22
Show Gist options
  • Save opi/6018369 to your computer and use it in GitHub Desktop.
Save opi/6018369 to your computer and use it in GitHub Desktop.
Alter jQuery UI css in drupal
<?php
/**
* Implements hook_css_alter().
*/
function yourtheme_css_alter(&$css) {
// Do not use jQuery UI defaults
$yourtheme = drupal_get_path('theme', 'yourtheme');
foreach(array('theme', 'tabs', 'accordion') as $file) {
if (isset($css['misc/ui/jquery.ui.'.$file.'.css'])) {
$css['misc/ui/jquery.ui.'.$file.'.css']['data'] = $yourtheme . '/css/jquery_ui/jquery.ui.'.$file.'.css';
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment