BLOGGING: Miracle of the Link Color

One step closer to WordPress: Finally found a method of changing the blue links on the K2 RC7 theme here and on Hypercompendia:

For the links within the posts, add a line (in bold) in the #primary section:

#primary {
position: relative;
float: left;
width: 500px;
padding: 10px;
}
#primary a{color: #A34E29;}

* html #primary {
display: inline;
}

The same in the sidebar, or secondary section:

.secondary {
width: 200px;
float: left;
font-size: 1em;
line-height: 1.5em;
color: #666;
position: relative;
padding: 0 10px;
overflow: hidden;
}

.secondary a{color:#26D96E;}

#sidebar-2 {
clear: right;
}

I must have come upon a dozen different suggestions to change the color of links, and tried quite a few before stumbling upon the notion in a post somewhere thru Google that the K2 theme was default blue so it wasn’t in code on the stylesheet in the usual manner. I also realized that ‘link’ was only referred to as “a” and between that and the 3-digit color coding I was going nuts–remember, I’m not a coding person; all I’ve learned I’ve learned through working with Typepad. I think it’s time I study the html book I dragged out for reference.

This entry was posted in BLOGGING. Bookmark the permalink.