Editing lib-common.php is not going to change your link colors. If you're using the XSilver theme, the alternating colors in the links located at the very top of the page are done by switching two graphics back and forth depending on whether your cursor is on or off. To change the colors here, you need to use a graphics editor.
The colors for all the other links are controlled by a style sheet in the theme. These are the relevant entries:
a {
font-family: verdana, tahoma, arial, sans-serif;
font-size: 11px;
color: #000000;
text-decoration : underline;
}
a:visited {
font-family: verdana, tahoma, helvetica, arial, sans-serif;
font-size: 11px;
color: #000000;
text-decoration : underline;
}
a:active {
font-family: verdana, tahoma, helvetica, arial, sans-serif;
font-size: 11px;
color: #666666;
text-decoration : none;
}
a:hover {
font-family: verdana, tahoma, helvetica, arial, sans-serif;
font-size: 11px;
color: #000000;
text-decoration : none;
}
If you want a different color, then change the hexidecimal number (e.g. color: #000000; = black). Here's a
hex code chart with the basic 216 colors. There's far more color shades, but since you don't seem to know CSS it's best to stick with the basic ones initially.
If you want to make certain links a different color from the default ones, then create a class and give it any name you want. Usually, it's best to pick a name that's meaningful to what it's being used for. Insert the class into your theme where the link(s) will be located, and then define it in your style sheet. For example:
inside your theme file where you want the link you would place:
Text Formatted Code
<a class="newsitems">Some News Event</a>
inside your style sheet you would add these entries or however you want the links to appear:
a.newsitems, a.newsitems:visited, a.newsitems:active {
font-family: arial, sans-serif;
font-size: 18px;
color: #ff0000;
text-decoration : none;
}
a.newsitems: hover {
font-family: arial, sans-serif;
font-size: 18px;
color: #ff00fff;
text-decoration : underline;
}
Those with the same characteristics can be grouped together like I showed here separated by a comma. They can also be listed separately
If you want to change the themes, I recommend you read up on how CSS works. It's kind of a strange concept at first exposure, but once used you'll see how easy it is to change the appearance over and over on your webpages without touching the code part. Here's a
basic tutorial on the subject.