I'm looking for ways to rename both drupal.css and drupal.js that appear in view source. I've also installed gallery.module on my site and drupal_g2.css is imported.

Does anyone know how to rename that 3 files?

Thanks.

Comments

akaifi’s picture

http://drupal.org/node/23217

or put this in your template.php file

function phptemplate_stylesheet_import($stylesheet, $media = 'all') {
  if (strpos($stylesheet, 'misc/drupal.css') != 0) {
	$stylesheet = str_replace('misc/drupal.css', 'misc/different_name.css', $stylesheet);
  }
  if (strpos($stylesheet, 'misc/drupal.css') == 0) {
	return theme_stylesheet_import($stylesheet, $media);
  }
}
seakayjay’s picture

thanks i got it

Christefano-oldaccount’s picture

Nice tip.