 | [Solved] Changing text color |  |
Posted: 04/21/2007 4:34 AM |
|
|
|
|
|
| Citation |
| Posts |
407 |
| Word Cnt. |
10,993 |
| BDay |
May 28 |
| Sign |
Gemini |
| Sex |
 |
|
|
|
Joined: Feb 25, 2007
Local time: 4:06 AM
Location: SE England
|

|
|
|
|
 |
Hey NR.
I'm stuck with what I'm trying to achieve with phpBBs' subSilver.
I want all the text in the headers to be orange, and the orange text to be red.
Any ideas? I'm stumped.
Thanks,
- Poomie |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Changing text color |  |
Posted: 04/21/2007 1:44 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 12:06 AM
Location: St Pete, FL
|

|
|
|
|
 |
The table header font color is the Font Colour 3 setting in your ACP => Styles Admin => Management section:
The link color for the Category is set in the Link color setting:
Unfortunately, when you change that, you change the color of all the links on your forum:
So you may have to either change the class setting for the Category or create a new one:
| Code:
|
|
<span class="cattitle"><a href="{catrow.U_VIEWCAT}" class="cattitle">{catrow.CAT_DESC}</a></span>
|
SubSilver is pulling it's class settings from the overall_header.tpl file rather than the subSilver.css file as you would expect. So the setting probably looks like this in the overall_header.tpl file:
| Code:
|
/* Forum category titles */
.cattitle { font-weight: bold; font-size: {T_FONTSIZE3}px ; letter-spacing: 1px; color : {T_BODY_LINK}}
a.cattitle { text-decoration: none; color : {T_BODY_LINK}; }
a.cattitle:hover{ text-decoration: underline; }
|
You could create a cattitle2 setting and set it like this:
| Code:
|
/* Forum category titles */
.cattitle, .cattitle2 { font-weight: bold; font-size: {T_FONTSIZE3}px ; letter-spacing: 1px; color : {T_BODY_LINK}}
a.cattitle { text-decoration: none; color : {T_BODY_LINK}; }
a.cattitle:hover, a.cattitle2:hover{ text-decoration: underline; }
a.cattitle2 { text-decoration: none; color : #DD6900; }
|
Then in your index_body.tpl file, you could change the span class setting accordingly:
| Code:
|
|
<span class="cattitle2"><a href="{catrow.U_VIEWCAT}" class="cattitle">
|
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] Changing text color |  |
Posted: 04/21/2007 3:02 PM |
|
|
|
|
|
| Citation |
| Posts |
407 |
| Word Cnt. |
10,993 |
| BDay |
May 28 |
| Sign |
Gemini |
| Sex |
 |
|
|
|
Joined: Feb 25, 2007
Local time: 4:06 AM
Location: SE England
|

|
|
|
|
 |
Thanks NR
I tried editiing subSilver.css but to no evale
So do you also know how to change the Admin user color to red?
Hehe I havn't used phpBB in so long, I've forgotten a little bit
- Poomie |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Changing text color |  |
Posted: 04/21/2007 3:19 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 12:06 AM
Location: St Pete, FL
|

|
|
|
|
 |
The admin color is set in Font Color 3 while the moderator color is in Font Color 2:
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] Changing text color |  |
Posted: 04/21/2007 4:20 PM |
|
|
|
|
|
| Citation |
| Posts |
407 |
| Word Cnt. |
10,993 |
| BDay |
May 28 |
| Sign |
Gemini |
| Sex |
 |
|
|
|
Joined: Feb 25, 2007
Local time: 4:06 AM
Location: SE England
|

|
|
|
|
 |
Hmm, well I can't get it to change it - it just ends up black.
- Poomie |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Changing text color |  |
Posted: 04/21/2007 4:28 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 12:06 AM
Location: St Pete, FL
|

|
|
|
|
 |
Are you using a 6 digit hex code without the # sign in front???
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] Changing text color |  |
Posted: 04/22/2007 12:33 AM |
|
|
|
|
|
| Citation |
| Posts |
407 |
| Word Cnt. |
10,993 |
| BDay |
May 28 |
| Sign |
Gemini |
| Sex |
 |
|
|
|
Joined: Feb 25, 2007
Local time: 4:06 AM
Location: SE England
|

|
|
|
|
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Changing text color |  |
Posted: 04/22/2007 12:55 AM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 12:06 AM
Location: St Pete, FL
|

|
|
|
|
 |
If the color was orange before you made the change, then black afterwards, you know that you are changing the correct value, but something is wrong with your code, or you are using a code that is black or close to it:7 000000...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] Changing text color |  |
Posted: 04/22/2007 1:41 AM |
|
|
|
|
|
| Citation |
| Posts |
407 |
| Word Cnt. |
10,993 |
| BDay |
May 28 |
| Sign |
Gemini |
| Sex |
 |
|
|
|
Joined: Feb 25, 2007
Local time: 4:06 AM
Location: SE England
|

|
|
|
|
 |
I was trying to use:
- Poomie |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Changing text color |  |
Posted: 04/22/2007 1:46 AM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 12:06 AM
Location: St Pete, FL
|

|
|
|
|
 |
Remove the pound sign #...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Information |  |
|