MyBB Community Forums

Full Version: Where to change the color of the links on a post?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello where can I change it? Thanks!
(2009-06-04, 07:42 PM)bugzy Wrote: [ -> ]Hello where can I change it? Thanks!

You can change the color of anything by editing your theme's global.css

Regards
Admin CP>Templates & Style>Themes>select your theme>global.css
Then click that drop-down thingy, and select a:link. That will change the colour of links who have been clicked.
If you want unclicked links with the same colour, then select a:visit and put the same hex code on it.
And finnally, if you want a different colour for active links or when hovering them, simply jump to a:hover, a:active and add your favourite colour.
You can also give some style to the links like underlining, italic or bold (there are many other stuff eventually), but that's up to you.
If you want to change the link color in just the post itself but NOT any of the other link colors, start as faviouz posted:

Admin CP>Templates & Style>Themes>select your theme>global.css

then find:

.post_body {
padding: 5px;
}

Add after that:

.post_body a:link {color:#880000;}
.post_body a:visited {color:#880000;}

Note: change color:#880000 to whatever color you like for the link.
You may also wish to change the css style or size; so, you could add this, for example:

.post_body a:link {
	color: #8A0886;
	font-size: 18px;
	font-style: italic;
}

I usually do it in the Edit Style Sheet: Advanced Mode.

For more information, see this link:
http://msdn.microsoft.com/en-us/library/...S.85).aspx

If you need a quick tool for getting color codes, use the one in the attached file.