Change Clicked URL Colour

Hi,

How can we change the colour of URL text once it’s clicked? The default is a white colour; how can we change this to black? Can this be done in CSS?

Hi @bananaman,

I hope you are well today and thank you for your question.

You can try achieving this by adding the following CSS code in the Custom CSS option of your theme on the below path.

Admin Area -> Appearance -> Customize -> Additional CSS

#page a:visited { 
    color: #000;
}

Best Regards,
Movin

Thanks, Movin,

I should have explained more carefully. That isn’t what I really wanted. That changes the “clicked URL” permanently to black.

Normally the URL text colour is Red. When you click the URL, it turns white for a short time (and follows the link). If you go back to the page, the URL is red again.

Following your method, the “clicked URL” is permanently black. I want to change the URL text colour “after the link has been clicked and before the next page loads”.

Sorry this is difficult to explain.

Hello there,

I hope you are doing well today.

You can use the following CSS code to have the color change when you click the link by going to Appearance > Customize > Additional CSS and pasting it there.

/*focus on link*/ #page a:focus { color: #000; }

Best Regards,
Support

That’s it!

Thanks a lot, Movin :smiley:

Hello there,

I am glad the solution worked for you.
Please feel free to contact us again in the future regarding any other issues.

Best Regards,
Support