September 30, 2009
Alter style.css of a Drupal theme
This small detail just cost me an hour's time. If you are using a Drupal theme (Garland in my case) and you alter the color scheme, a new directory is created to hold the non-default settings. If you want to tweak the new layout, you then need to go to the style sheet in the new directory (not the default directory.) Now that I think of it, this makes sense but for a newbie this is the kind of detail that is a killer.
Here is an example:
For me, the style.css sheet for Garland is found here:
$ ls -al /usr/share/drupal6/themes/garland/
But when I change the default color scheme a new directory is created:
"The directory sites/default/files/color/garland-b1c6958e has been created."
For the record, that puts me in the following directory:
$ ls /etc/drupal/6/sites/default/files/color/garland-blahblahblah/
If you navigate to this folder you will find a style.css sheet that you can edit to adjust your theme. Now that I see the screen cap it is completely obvious but this help forum is actually what tipped me off.
(Right-click > View Image for full size image)
Posted by kkwaiser at September 30, 2009 09:58 AM
That was a very interesting read, thanks for taking the time to post it.
Posted by: firstname.lastname@example.org at September 24, 2010 07:37 AMLogin to leave a comment. Create a new account.