I have been getting some impressive results with Bartik and want to see it in core. As of the 20100509 release, though, the README.txt file seems to be on vacation.
In past releases it showed how create a Bartik subtheme, plus this note on using the color scheme tool:
CHANGING THE COLOR.CSS FILE
If you adjust the colors using the color scheme tool in Bartik's theme settings, the color.css file will be duplicated and the new copy will be placed in default/sites/files/. It is this new copy that will have the CSS for the colors you specified. The original copy of color.css will stay in themes/bartik/css/, but will no longer have any impact on the site's display.
If you are having trouble making changes directly to the stylesheet, if you are making changes but they aren't having an effect, then try turning color module off in the modules administration area.
Now . . . if the duplicated color.css (which became colors.css) is supposed to be under sites/default/ but is not, where else might it be?
Does this info even apply to the case of using a subtheme?
I'm trying to see why my selections via the color scheme tool inside a subtheme have no effect, while everything works as intended when using one within a regular Bartik theme.
Turning off the color module makes no apparent difference. Am I the only one unable to get a result? A new README.txt with extra specific advice would be very helpful.
Comments
Comment #1
Jeff Burnz commentedYeah, the readme is actually wrong, the processed colors.css file actually gets saved at something like:
sites/default/files/color/bartik-8c37b643/colors.cssOn my setup this equates to (using a subtheme)...
sites/d7-alpha4/files/color/mybartik-af8883d9/colors.cssComment #2
jpw1116 commentedThanks for verifying the README error.
Sadly, I still have no colors.css duplicated in my subtheme's corresponding directory.
Can you think of anything else fussy about Bartik subtheming that would cause that?
More important, is there a known fix to get color theme tool selections working in a subtheme . . . without hacking core?
This is the last hangup I'm having with Bartik in Alpha 4 and it would be great to get it ironed out--thanks again.
Comment #3
Jeff Burnz commentedhow did you setup your subtheme, actually I just copied Bartik, removed the templates, changed the name of style.css to mystyle.css and added the base theme = bartik to the info file etc and switched it on and it all worked (pretty sure thats all I did, took me about a minute).
Comment #4
jpw1116 commentedThat was my M.O. too--and I've tried numerous times--but the color tool changes never "stick" even after refreshing the caches. The rest of the subtheme works, just no persistence of the custom (or preset) color combos.
The one thing that may be a factor is that this is a two-site multisite, without a /default dir (just two custom ones off /sites, one per domain).
I may give it a break and visit another theme for the time being, just to make sure. Still, thanks for the replies.
Comment #5
bleen commentedIf anyone else can confirm jpw1116 experience, we can reopen this. But I havent been able to, and according to #3 Jeff Burnz couldn't either
Comment #6
Sylvain Lasnier commentedI confirm jpw1116 experience with official D7 release.
Bartik subtheme colors stay the default colors.
.info content:
css/color.css and color directory of Bartik are duplicate in subtheme directory.
No trace in log
Do somebody make a Bartik subtheme using color feature with success?
Comment #7
Sylvain Lasnier commentedI try to override duplicate color.css file. No change.
Original Bartik color.css is used; checked with update it.
Any workaround?
Comment #8
Anonymous (not verified) commentedHi Sylvain,
To make the color module work on subtheme, do the following
1. In .info file put: stylesheets[all][] = css/colors.css
2. Put a copy of the colors.css of the bartik theme into the subtheme/css
3. Put a copy of the color folder of the bartik theme into the subtheme
4. In template.php of the subtheme put
I think, you just made a typo in your .info specifications. Notice the "s". In the future update, this inheritance should be included in the color module.
Comment #9
Anonymous (not verified) commentedThe inheritance of drupal theme/subtheme also needs to be revised at the fundamental level.
Comment #10
jensimmons commentedComment #11
tim.plunkettI've had no trouble with this.
Duplicate of #800510: Write docs on how to subtheme Bartik, esp w/ color module support.
Comment #12
BenPoole commentedThe solution in #8 is excellent. Thanks for clearing it up, herianto1989. I refer to it about once a month, (each time I subtheme bartik).
Comment #13
BenPoole commentedOh, you could also add as a step to copy a logo.png file into your "sites/all/themes/mytheme" directory. For some reason, it tries to overwrite that file, and throws an error message if it doesn't exist (although, I don't think it actually makes any changes to the logo). Here's the error:
"The specified file sites/all/themes/hoover/logo.png could not be copied, because no file by that name exists. Please check that you supplied the correct filename."