How to make links stay black after clicking on one page only - Forum | JoomShaper
Staff replied Helix Framework

How to make links stay black after clicking on one page only

Asked by Shirley Craig 3 years ago Last activity 3 years ago

I have one page that I need to style the text links so they stay black after clicking.
When you first come to the page the links are black but after clicking on them they all turn orange when I come back to the page. How to make them stay black after clicking and coming back to the page? It's fine if the hover state is blue that shows it's a link but the orange is not wanted.
https://screenrec.com/share/nhlVj5I2LY
Thank you.

1 reply

Rashida Rahman Staff
3 years ago · edited

Hi there!

You may try the following cod in your custom CSS:

body.itemid-53 .article-details Span>a, body.itemid-53 .article-details Span>a:focus, body.itemid-53 .article-details Span>a:active {
    color: #000000;
}
body.itemid-53 .article-details Span>a:hover{
    color: blue;
}

Note: Path towards custom CSS(Joomla 3): Extensions>Templates>Styles> Click on your current default template name then choose Template Options. Then find custom CSS within the custom code.

Hope this helps anyways.

Best Regards

Log in to reply.