Sign Up! Login: Password: New User? Forgot? Support
Top Mods!
Wowhead Search
by sonofsamedi
Digital Clock
by Wolfar15
Admin Forums
Welcome to the GuildPortal Help Community! These forums are for admin-to-admin help.
Available Forums
Forums : Pimp My Site! > Change Link styles for links in forum posts only?
Ebenthorin (Guild Admin) 11/2/2007 4:58 AM EST : Change Link styles for links in forum posts only?
Ebenthorin
Posts: 1274
Zomgawsh Poster

Hey guys,
 Is there any way to change the link styles for links that are in the body of a forum post? Can we set the links in the posts to use a different CSS class automatically?

-Eben
TopBottom

Ebenthorin (Guild Admin) 11/2/2007 5:42 AM EST : RE: Change Link styles for links in forum posts only?
Ebenthorin
Posts: 1274
Zomgawsh Poster

It looks like the post bodies are all wrapped in a DIV with the class set to MessageBodyCell1. So I guess I need to brush off my CSS books to see about adding anchor styles to that class, and try to figure out how to cram those styles into this system.

Any thoughts?

-Eben
TopBottom

Ebenthorin (Guild Admin) 11/2/2007 6:13 AM EST : RE: Change Link styles for links in forum posts only?
Ebenthorin
Posts: 1274
Zomgawsh Poster

okay, I found it. I had to enable custom style sheets. I copied the style from the tag on the home page, pasted that into the new custom style sheet. Then I added this:

.MessageBodyCell1 {}
.MessageBodyCell1 A:active {
    color: #FF0000;
    text-decoration: none;}
.MessageBodyCell1 A:link {
    color: #CC0000
    text-decoration: none;}
.MessageBodyCell1 A:hover {
    color: #FF0000;
    text-decoration: none;}
.MessageBodyCell1 A:visited {
    color: #990000;
    text-decoration: none;}

That will change the color of the links inside forum post bodies (not the headers, navigation, content links, or anything else).

-Eben
TopBottom

Rosary_KT (Guild Admin) 11/3/2007 5:45 PM EST : RE: Change Link styles for links in forum posts only?
Rosary_KT
Posts: 1072
Zomgawsh Poster

Thank you for doing the research and posting your solution here.
I had planned on figuring out how to style the forum links, but just hadn't gotten around to it, so thank you so much for saving me the trouble

One item -- I adjusted the capital A's into lower cased and your code works perfectly now.

.MessageBodyCell1 {}
.MessageBodyCell1 a:active {
    color: #FF0000;
    text-decoration: none;}
.MessageBodyCell1 a:link {
    color: #CC0000
    text-decoration: none;}
.MessageBodyCell1 a:hover {
    color: #FF0000;
    text-decoration: none;}
.MessageBodyCell1 a:visited {
    color: #990000;
    text-decoration: none;}
No alternate text supplied.
TopBottom

Admins Online
There are   members online.
So-and-so has logged on!
%title%
%message%