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
Comments
Is your style.css in the
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
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
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
Thanks! That did the trick!
Petter
Save your configuration
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
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
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!
Got it. Thanks!
Firebug
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
--
zzolo
Changes in style.css not reflected on site
Hi,
If your using Cloudflare, purge the cache from cloudflare to reflect the css changes. You can also set the page rules to Bypass the cache at cloudflare
Thank you
Faruq Shaik