Log in Register FAQ Memberlist Search Welcome to RCF - WHF Forum Index
alt : test.swf
Welcome to RCF - WHF
4fx3.gif 
calendar_open_closeCalendar 
[Solved] Changing text color
Post new topic   Reply to topic View previous topic :: View next topic
Goto page: Previous  1, 2, 3  Next
Welcome to RCF - WHF Forum Index -> Area 51 - phpBB & Easymod Tech Support Add To Bookmarks
Re: [Solved] Changing text color
PostPosted: 04/22/2007 1:56 AM Reply with quote
Citation
poomerio
Citation
Posts 407
Word Cnt. 10,993
BDay May 28
Sign Gemini
Sex Sex:Male
Joined: Feb 25, 2007
Local time: 4:47 PM
Location: SE England
greatbrE.gif
Yay it works Very Happy

Thanks Nightrider!

- Poomie
Back to Top
View user's profile Find all posts by poomerio Send private message   Phoogle Map
Re: Changing text color
PostPosted: 04/22/2007 12:07 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 12:47 PM
Location: St Pete, FL
peace.gif
Congratulations Poomie.  I had a feeling that it was going to work...

Applause
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: [Solved] Changing text color
PostPosted: 04/22/2007 2:58 PM Reply with quote
Citation
poomerio
Citation
Posts 407
Word Cnt. 10,993
BDay May 28
Sign Gemini
Sex Sex:Male
Joined: Feb 25, 2007
Local time: 4:47 PM
Location: SE England
greatbrE.gif
Yeah, I had a feeling it would too  banana

So how ya doing NR?

- Poomie
Back to Top
View user's profile Find all posts by poomerio Send private message   Phoogle Map
Re: Changing text color
PostPosted: 04/22/2007 3:52 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 12:47 PM
Location: St Pete, FL
peace.gif
I'm doing ok.  I'm a bit groggy today, but my mind is fairly clear...

munky2
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: [Solved] Changing text color
PostPosted: 04/22/2007 11:35 PM Reply with quote
Citation
poomerio
Citation
Posts 407
Word Cnt. 10,993
BDay May 28
Sign Gemini
Sex Sex:Male
Joined: Feb 25, 2007
Local time: 4:47 PM
Location: SE England
greatbrE.gif
Yay Very Happy

- Poomie
Back to Top
View user's profile Find all posts by poomerio Send private message   Phoogle Map
Re: [Solved] Changing text color
PostPosted: 04/23/2007 12:56 PM Reply with quote
Citation
KeeKee
Citation
Posts 940
Word Cnt. 48,215
BDay Mar 4
Sign Pisces
Sex Sex:Female
Joined: Mar 20, 2006
Local time: 11:47 AM
usaCa.gif
May I add a question Please?
I would like to change the color of the board title and the description. can that be done without affecting anything else?

What I would really really like to do is put a banner in place of those.
Back to Top
View user's profile Find all posts by KeeKee Send private message   Visit poster's website Yahoo Messenger Phoogle Map ICQ Number
Re: Changing text color
PostPosted: 04/23/2007 2:52 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 12:47 PM
Location: St Pete, FL
peace.gif
The board title and the description are set to use the maintitle class for their font colors.  In the subSilver template, the class is defined in the overall_header.tpl and subSilver.css files, but only the class setting in the overall_header.tpl file is being used.  This is the code:

Code:
/* The largest text used in the index page title and toptic title etc. */
.maintitle   {
   font-weight: bold; font-size: 22px; font-family: "{T_FONTFACE2}",{T_FONTFACE1};
   text-decoration: none; line-height : 120%; color : {T_BODY_TEXT};
}

So the font color is assigned the value {T_BODY_TEXT}, which is set to $theme['body_text'] in your page_header.php file, which corresponds to the Text Color setting in your Styles Admin Management utility in your ACP:


Ok, if that isn't confusing enough, I don't know what is.  It would have been easier to use the setting from the subSilver.css file...

If you change the setting here in your Styles Admin Management utility, it is possible/likely that it will affect other font color settings too.  So you can adjust this in your overall_header.tpl file by hardcoding the color to whatever you want to use:

Code:
.maintitle   {
   font-weight: bold; font-size: 22px; font-family: "{T_FONTFACE2}",{T_FONTFACE1};
   text-decoration: none; line-height : 120%; color : #CC0033;
}

Or you can create/add a new class that is guaranteed not to affect any other font settings:

Code:
.maintitle2   {
   font-weight: bold; font-size: 22px; font-family: "{T_FONTFACE2}",{T_FONTFACE1};
   text-decoration: none; line-height : 120%; color : #CC0033;
}

Then you would adjust the class name in the span tag:

Code:
<span class="maintitle2">

The Site Description is set to the gen class, so you could do the same type of thing for it.  But if you want to remove the title and description altogether and replace them with a banner image, you would simply remove the following from your overall_header.tpl file and replace it with an <img src=""> HTML tag assigning the correct path to the new banner image file and not have to worry about modifying existing class settings or creating new classes:

Code:
<span class="maintitle">{SITENAME}</span><br /><span class="gen">{SITE_DESCRIPTION}<br />&nbsp; </span>

headbang
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: [Solved] Changing text color
PostPosted: 04/23/2007 3:30 PM Reply with quote
Citation
KeeKee
Citation
Posts 940
Word Cnt. 48,215
BDay Mar 4
Sign Pisces
Sex Sex:Female
Joined: Mar 20, 2006
Local time: 11:47 AM
usaCa.gif
I actually was looking at that "gen" and going DUH!   Brick wall
It's like I kind of get what is being said but it's stumbling around in my head.

I'm getting PaintShop down and am making some images so a banner with the title name in the same font as the link to the main site and some cute little animals scattered about (pet board) would look nice....

BUT!

I'm being indexed by the majors and I think for SEO purposes I should leave things as they are which leaves me with the option to create a new class.

Now let me go read about that again.
Back to Top
View user's profile Find all posts by KeeKee Send private message   Visit poster's website Yahoo Messenger Phoogle Map ICQ Number
Re: [Solved] Changing text color
PostPosted: 04/23/2007 4:12 PM Reply with quote
Citation
KeeKee
Citation
Posts 940
Word Cnt. 48,215
BDay Mar 4
Sign Pisces
Sex Sex:Female
Joined: Mar 20, 2006
Local time: 11:47 AM
usaCa.gif
adding the class...

That first part goes into the .css under the other .maintitle,h1,h2 ?

and hte second goes somewhere in the overall header?
Back to Top
View user's profile Find all posts by KeeKee Send private message   Visit poster's website Yahoo Messenger Phoogle Map ICQ Number
Re: Changing text color
PostPosted: 04/23/2007 5:35 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 12:47 PM
Location: St Pete, FL
peace.gif
For the subSilver template, it is pulling all the style information from the overall_header.tpl file.  So add the new classes there instead of the subSilver.css file...

munky2
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
 Post new topic  Reply to topic
Information
Welcome to RCF - WHF Forum Index -> Area 51 - phpBB & Easymod Tech Support

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum
All times are GMT - 5 Hours
Goto page: Previous  1, 2, 3  Next
Page 2 of 3


Add To Bookmarks

 
  
  


  Google

Powered by phpBB © 2001, 2005 phpBB Group

Page generation time: 0.1175s (PHP: 60% - SQL: 40%) - SQL queries: 57 - GZIP disabled - Debug on