Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Center area post/pages (http://forum.bytesforall.com/forumdisplay.php?f=32)
-   -   Adding color to link in post (http://forum.bytesforall.com/showthread.php?t=5273)

mikerogers49 Jan 12, 2010 02:42 PM

Adding color to link in post
 
I would like to add color to a link in a post, like a royal blue. I am linking to another post in the body of a post, but when i try to change the color, the only choice is grey to black. Even if I choose a color in ATO/Body, Text Link/Link Default Color, it wont change to any color but black or gray. Any Ideas?

juggledad Jan 12, 2010 06:35 PM

one way to do this would be to assign the link a class of your own then add a CSS Insert to set the color. For example, if the post was
HTML Code:

if you want to go to MYDOMAIN.COM, then <a class="my_color_class" href='http://mydomain.com'>click here to go to MYDOMAIN.COM</a>
you could then put this in CSS Inserts
HTML Code:

.my_color_class { color: #00ffff !important; }
and all you would have to do to change the color would be to change the insert, or you could code
HTML Code:

.my_color_red { color: red !important; }
.my_color_orange { color: orange !important; }
.my_color_yellow { color: yellow !important; }
.my_color_green { color: green !important; }
.my_color_blue { color: blue !important; }

then just use the appropriate class in the link


All times are GMT -6. The time now is 04:17 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.