You are here

How to use your own css file in Drupal

Here is another small tip for designing drupal website. When you develop sites in drupal you be definitely need to modify the existing css file of the theme you are using. my suggestion is don't mess much with the original theme. Keep it as it is or change it only when you really have to.

Just create your own css file, lets say we call it MyOwn.css and write your code in it. Then edit the .info file of the theme you are using and add the following line in it.

  1. stylesheets[all][] = style.css
  2. stylesheets[all][] = ribbon.css
  3. stylesheets[all][] = aggregator.css
  4. stylesheets[all][] = local.css
  5. stylesheets[all][] = MyOwn.css

After doing that clear the cache check if you new css work or not!!

Drupal rocks!!

Blog Tags: