Copenhagen theme -- CSS to change color of links in articles | Community
Skip to main content

Copenhagen theme -- CSS to change color of links in articles

  • October 3, 2016
  • 2 replies
  • 0 views

I'm using the Copenhagen theme, and all link colors seem to be based on Color 4, which can be adjusted in Customize design > Appearance. I like color 4 for unvisited links, but it is making the visited links so dark they appear almost the same color as regular text. How can I customize the theme (assuming I need some CSS for this) so that visited links appear in a specific color that I choose ( and not just a darker version of Color 4)? 

 

This topic has been closed for replies.

2 replies

If this is for the links inside articles, you could change the CSS on line 1234 that looks like this:

.article-body a:visited {
color: darken($color_4, 20%);
}

to something like this, for example:

.article-body a:visited {
color: red;
}

  • Author
  • October 10, 2016

Alex, this is exactly what I was looking for, thank you!