 | Re: [Solved] Changing text color |  |
Posted: 04/26/2007 6:41 PM |
|
|
|
|
|
| Citation |
| Posts |
940 |
| Word Cnt. |
48,215 |
| BDay |
Mar 4 |
| Sign |
Pisces |
| Sex |
 |
|
|
|
Joined: Mar 20, 2006
Local time: 2:34 PM
|

|
|
|
|
 |
O.K. I got the Title but cannot figure out the description. Bacically I want it the same as it is except for the color.
I know where to change the call part and figured creating a new class for it would be just like the title except for the font size, but I don't understand that 120% would it change cause the font size changes? |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] Changing text color |  |
Posted: 04/27/2007 12:35 AM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 3:34 PM
Location: St Pete, FL
|

|
|
|
|
 |
The Site Description class is gen and is also assigned in the overall_header.tpl file in the subSilver template along with other similar classes:
| Code:
|
.gen { font-size : {T_FONTSIZE3}px; }
.genmed { font-size : {T_FONTSIZE2}px; }
.gensmall { font-size : {T_FONTSIZE1}px; }
.gen,.genmed,.gensmall { color : {T_BODY_TEXT}; }
a.gen,a.genmed,a.gensmall { color: {T_BODY_LINK}; text-decoration: none; }
a.gen:hover,a.genmed:hover,a.gensmall:hover { color: {T_BODY_HLINK}; text-decoration: underline; }
|
So if you want everything to remain the same except for the color, you can create a new class and assign it like this:
| Code:
|
.gen, .gen2 { font-size : {T_FONTSIZE3}px; }
.genmed { font-size : {T_FONTSIZE2}px; }
.gensmall { font-size : {T_FONTSIZE1}px; }
.gen,.genmed,.gensmall { color : {T_BODY_TEXT}; }
a.gen,a.genmed,a.gensmall { color: {T_BODY_LINK}; text-decoration: none; }
a.gen:hover,a.genmed:hover,a.gensmall:hover { color: {T_BODY_HLINK}; text-decoration: underline; }
.gen2 { color : #000000; } //assign the color that you want in place of 000000
|
Assign the color that you want in place of 000000 in .gen2 on the bottom line. Then go down and modify the following:
OPEN
subSilver/overall_header.tpl
FIND
| Code:
|
|
<span class="gen">{SITE_DESCRIPTION}
|
REPLACE WITH
| Code:
|
|
<span class="gen2">{SITE_DESCRIPTION}
|
Don't forget to create a good backup of any file that you manually modify before you overwrite it, just in case...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] Changing text color |  |
Posted: 04/27/2007 2:41 PM |
|
|
|
|
|
| Citation |
| Posts |
940 |
| Word Cnt. |
48,215 |
| BDay |
Mar 4 |
| Sign |
Pisces |
| Sex |
 |
|
|
|
Joined: Mar 20, 2006
Local time: 2:34 PM
|

|
|
|
|
 |
O.K. I see now. One last question if I wanted to add italic in there then would the gen2 be created on a seperate one from the gen and put the instruction there or would the instruction go down at the bottom where gen2 gets called.
Sure hope that made sense. |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] Changing text color |  |
Posted: 04/27/2007 3:30 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 3:34 PM
Location: St Pete, FL
|

|
|
|
|
 |
You could do it either place. You could do this:
| Code:
|
|
.gen2 { color : #000000; font-style: italic; } //assign the color that you want in place of 000000
|
Or you could do this:
| Code:
|
|
<span class="gen2"><i>{SITE_DESCRIPTION}</i>
|
The first option is probably the better one though...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Information |  |
|