I'm trying to add a css file to the Admin Theme (for Backend) of the Commerce Kickstart distribution.

I tried this in a custom module, but not working, the css file is not loaded at all.

drupal_add_css(drupal_get_path('theme', 'commerce_kickstart_admin') . 'css/overrides.css', array('group' => CSS_THEME, 'type' => 'file'));

I created the css file at:


Also, is there any way to put the css file in other location? like:


  • Any reason not to create child theme and simply use info file to point to your CSS? – Mołot Jan 10 '14 at 9:16
  • @Mołot I just need to add 3 or 4 css rules, should I create a subtheme for this? – chefnelone Jan 10 '14 at 10:13
  • For sure it's simpler than creating module - the same burden for system, but at least you would be using tool designed for that purpose. Modules are capable of doing it, but that's not what they was created for. Themes are. – Mołot Jan 10 '14 at 10:19

I would strongly suggest to create a subtheme for additional CSS. That's what subthemes are for, after all, and it's less work than to make a module. Simply use info file and it's stylesheets[all][] entry.

If you have time, you can investigate how AdaptiveTheme allows GUI editing of CSS, and implement this in your custom theme. AT is open-source after all, so it would be legal to copy-paste this functionality. It will make your life easier for future:

Custom CSS screenshot

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.