[SOLVED] How do you change the link color of one specific link in WordPress?


How do you change the color of a specific link on a post in WordPress? Do I just use CSS code right there in the post?

for example, this is what I did in the post:

<a href="http://www.google.com"><font color="FF00CC"></font>test</a>


<a href="http://www.google.com"><font color="FF00CC">test</font></a>

it didn’t work

I don’t know how to give it a class name because it’s just a single word so I’m not sure I can target it in the custom CSS section.

do you know how to change the link’s hover, active, and visited states too? The color that I selected for the whole WordPress site I have is different in this particular word and I’m not sure why either.

I have a class name on this entire post as a side note because I did other CSS customizations on it in the custom CSS section. I just want to target this one link on this page tho.


You can write an inline CSS.

<a style="color: #FF00CC" href="http://www.google.com">test</a>

Answered By – cainelli

Answer Checked By – Clifford M. (BugsFixing Volunteer)

Leave a Reply

Your email address will not be published. Required fields are marked *