View Full Version : Changeing colours of text/links in templates
Im trying to change the colour of certain links, and text, but not all, in some templates.
Ive tryed changeing <smallfont> to <smallfont color="#000000">
for black but it doesant work. and <smallfont color="black"
that doesant work either.
I have no clue how to change some but not all link colours.
Maybe <a href color=#FFFFFF> or summit link that.
poor noghttps://vborg.vbsupport.ru/
SaintDog
07-22-2002, 10:43 AM
Admin CP -> Styles -> Modify
You can edit the link color(s) there
I know you can change all the link colour's there but I dont want to change all, just some.
And is the line Im putting into the template's to change colour of select bits of text correct?
mashby
07-22-2002, 02:16 PM
Well, you could add some extra tags in your css file. For example, you could have <smallfont> for one color and <smallfont2> for another color.
That would do the trick for sure.
When you say my css file do you mean the cp.css file?
What should I put in this to sort a differant color for smallfont2?
Thanks for all the help.
mashby
07-22-2002, 03:05 PM
Well, the easiest would be to simply create a new css entry. In your "headerinclude" template, you could include the following:
NEWFONT {BACKGROUND: none; FONT-FAMILY: verdana, arial, helvetica, sans-serif; color: #000000}
Then in your code you can use <newfont> as a tag for a black font.
Remember, you'll need to add other elements, such as font size, etc.
Hope that helps!
shiva
07-22-2002, 08:34 PM
Here's the code example for that. Add a new set of styles in your header, and you can also have seperate colors for the links, and hover:
.leftcolumn { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: #000000}
.leftcolumn a:link { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; font-weight: bold; color: #000000}
.leftcolumn a:active { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; font-weight: bold; color: #000000}
.leftcolumn a:visited { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; font-weight: bold; color: #000000}
.leftcolumn a:hover { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; font-weight: bold; color: #FF0000}
Then its just a <font class="leftcolumn"> THE TEXT</font> of the text you want.
This is the code for the left nav links at www.shivasite.com if you need a example.
Thanks a lot for the help guys.
I added a new font for the white text to make it black and it works. :)
Just have to sort the links now, Ill try adding that code now.
I cant get it to work.
All I need is an alternate link color that can be used anywhere on the forum. This alternate link should be white and the hover color red. Im a noob at this.
What should I put in the headinclude template and how would I use the alternate link rather than the standard?
Your forum looks really cool by the way shiva. Must of taken weeks to get it looking like that.
:)
mashby
07-23-2002, 05:15 PM
Do this:
1. Go to your headerinclude template in your Admin Control panel
2. Search for
.thtcolor {
COLOR: {tableheadtextcolor};
}
3. Just after that and BEFORE the </style> tag insert the following
.new {
COLOR: red;
}
4. Change the color (currently "red") to whatever color you want.
5. Save Changes
6. Go into any template and change the start of any link tag, aka <a href=> to the new class to see the new color <a class="new" href=...>
Thanks mashby.
So if I was goona change the color of the "welcome to our newest member, **** bit in the forumhome template,
the **** representing the link of the members name, I would change:
Welcome to our newest member, <a href="member.php?s=$session[sessionhash]&action=getinfo&userid=$newuserid">$newusername</a>
</smallfont></td>
To:
Welcome to our newest member, <a class="new" href="member.php?s=$session[sessionhash]&action=getinfo&userid=$newuserid">$newusername</a>
</smallfont></td>
Am I right?
mashby
07-24-2002, 04:43 PM
Yes, that should work. :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.