How do you change the color of a specific link on a post page?

Hi,

I’m using anchor links, and I’d like these specific links to be a different color (white) than the global site link color (blue). How do I go about doing this?

Thanks

Hello Raphael,

Thanks for writing in! The global settings will be applied to the post contents. If you want to have a custom color, you will need to use an inline element style attribute in the <a> tag.

As example, you can use the following:

<a href="https://example.com/link-to-my-post/"  style="color: red;">Read more about my post</a>

Hope this makes sense.

1 Like

It works perfectly, it’s exactly what I wanted.
Thanks

Awesome! Glad to hear, Raphael!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.