Postponed
Project:
Four Seasons
Version:
5.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
4 Feb 2008 at 21:19 UTC
Updated:
23 Feb 2008 at 10:57 UTC
How do you pick a final color scheme and make that the scheme for all users? And if I pick a different color scheme and then go to another page, it reverts back to the default color.
I'm using Mac FireFox and Mac Safari (both behave the same)
Lovin it so far! I like the support for secondary menus (surprisingly not many themes have that)
Comments
Comment #1
derjochenmeyer commentedThanks for the feedback... Im working on a solution for the color picker... At the moment its just a try-out... to finally change the color theme for all users you have to modify the style.css a litte bit...
for now you have to find the folowing entries in the style.css and change them:
Line 30:
Line 69:
Line 93:
Change the color (in this example #006699) to the color you like.
Orange: #FF9900
Red: #990000
Grey: #CCCCCC
Blue: #006699
Black: #000000
DONT FORGET A HARD BROWSER RELOAD SINCE STYLE.CSS GETS CACHED (Hit: ctrl + F5, or shift + F5)
Comment #2
derjochenmeyer commentedComment #3
pinow commentededit: solution found
Comment #4
drupalferret commentedCould you perhaps share the solution if it was not the same as posted above? I have the same issue.
Thanks
Comment #5
mdowsett commentedJust manually changed the base color codes in the style.css file to which ever color you'd like. He outlined it above on what to change.
Comment #6
drupalferret commentedThanks - got it. I discovered you can also change settings in template.php too
Comment #7
PascalPeeters commenteddrupalfool, it would be nice if you could tell us more about these settings. Thanks !
Comment #8
drupalferret commentedSure thing. Here is a quick "How To Recipe" for changing the order of the header "picker" elements so they are aligned right instead of left and so the logo appears on the left instead of the right. I suggest you make a copy of the original files and rename them with the prefix _aligned_right.
The fourseasons theme header has a font and colourpicker aligned left and the logo is aligned right by default. We want the logo to be aligned left and the pickers to be aligned right. Below are notes on what needs to be changed:
Template.php
Change the order of the font selector and the colour picker:
a) Identify the following code: fourseasons_adminwidget
This is the javascript which allows the "picker" to work. Leave this alone.
b) Identify the following code:
This is the code which sets the colours for the colour selector
c) Identify the following code:
This is the code which sets the font size
Move the entire div named font to below the div named farben by cutting and pasting everything from the opening and closing div tags
Next change the order of the font size lines so 100% is on top and 10% is at the bottom. Again, cut and paste works fine. Make sure you paste the entire line:
Finally change the span from margin-left to margin-right:
Do the same for the farben div except span needs to be margin-left.
The two div tags now look like this:
========
Style.css
========
Change the following tags to text-align:left;
This changes the logo so it is aligned left
Change the following tags to float:right;
This changes the "pickers" to align right.
Upload the revised files to the server, do a HARD reload (F5) of the browser to refresh the cache and have a look at the fresh layout.
I am thinking it may be possible to find a way to load a new stylesheet when the color picker is selected. If so it would not only change the font colours but images could also be changed too including the logo and the background image below the logo. Possibly this could also be set using some kind of cookie to preserve the chosen style.
Comment #9
SCarson-1 commentedDrupalFool,
Thank you very much for this description. It will really help at getting at this theme. Much appreciated.
Sam