Changes in style.css not reflected on site

PWG - April 3, 2008 - 14:53

Hi,

No matter what changes I make in style.css they are ignored by my site as if it is cached somewhere (although I have cleared the cache several times and checked that CSS optimization is disabled). If I remove style.css completely the styling is completely removed is it should, though.

My theme is based on a copy of Garland. I've looked for hardcoded paths but not found any. My mytheme.info file looks like this:

; $Id: mytheme.info,v 1.0 2008/04/02 17:00:00 PWG Exp $
name = Mytheme
description = Tableless, recolorable, multi-column, fluid width theme.
version = VERSION
core = 6.x
engine = phptemplate
stylesheets[all][] = style.css
stylesheets[print][] = print.css

Any advice?

Petter

Is your style.css in the

schneider707 - April 3, 2008 - 18:45

Is your style.css in the same folder as your page.tpl.php? Also, check your page.tpl.php to see if you have it looking for your css page in a funny location

Yes, they are in the same

PWG - April 3, 2008 - 20:08

Yes, they are in the same folder. And since the site style is obliterated if I remove style.css completely from the folder I take that as meaning that the right file is called.

This is really irritating.

Petter

You need to use the default scheme

pixture - April 3, 2008 - 23:09

Since your theme is based on Garland, which is a recolorable module, you need to use the default color scheme (the color scheme at the top of the scheme array in color/color.inc).

Otherwise, files/color/yourtheme-XXXXX/style.css is used instead of the one in your theme folder. This style.css is generated based on the original style.css in your theme directory but the color (background color, color...) is changed according to the base color difference.

So work on the default color scheme if you need to make changes to style.css. If you do so, the files/color/yourtheme-XXXX is not created and the style.css in your theme directory is used.

Thanks! That did the

PWG - April 6, 2008 - 16:51

Thanks! That did the trick!

Petter

Save your configuration

russgri - April 4, 2008 - 05:34

Each time you make a change in your style.css, you will have to go to admininster and select themes/garaland-themename and save the config again.

---------------
Russell Griechen

Thanks, but why? After

PWG - April 6, 2008 - 16:55

Thanks, but why? After having followed Pixture's advice it seems all I need to do is make change in style.css. Am I missing something?

Petter

russgri is also correct

pixture - April 7, 2008 - 22:37

If you need to work on style.css with non-default color scheme, you need to do "Save Settings" after you make any changes to the style.css in the theme folder. If you do "Save Settings", then the style.css in files/color/yourtheme-XXXXX/ directory is updated (actually, a new files/color/yourtheme-ZZZZZ directory is created) to reflect the change you have made to your original style.css in the theme directory.

So as long as you use the default color scheme, this is not necessary. This is neccessary only for non-default color schemes.

Got it. Thanks!

PWG - April 8, 2008 - 09:33

Got it. Thanks!

Firebug

Binary Bill - April 8, 2008 - 06:53

You should also use Firebug to help show you were all the styles are coming from (among other great development tools).
http://www.getfirebug.com/

This will help show you that Drupal provides lots of CSS that maybe need to be overrided.

--
Alan

 
 

Drupal is a registered trademark of Dries Buytaert.