Making New CSS Changes - Tip


Author Message
Kevin

Posted: 4/24/2011
Quote message 

Often when creating sites in Drupal with Artisteer I have to do major changes with the css.

Sometimes revisions in the theme design require me to edit the theme and upload it again to the server.

This causes issues as all the css that I have coded will then be overwritten and lost if I was foolish enough not to make a backup.

So basically here is my solution that I have come up with (it's pretty basic):

Create a new css file in the theme folder, e.g newcss.css

Add all your css to that file.

Then edit the .info file for your theme and add


stylesheets[all][] = cd.css 


Then every time you re-upload your theme that file will remain and you can just update the code in the .info

Remember to reload the theme registry after you change the .info file or Drupal will not detect the change.

Hope this helps someone, if someone has a different method for solving this problem it'd be great to share.

Kevin - http://www.coyledesign.co.uk
 
Martin

Posted: 4/30/2011
Quote message 

http://drupal.org/project/customcssjs

Custom CCS coding and no need to update the .info file and no need to reload the theme registry.

Regards