Well, so far I have skimmed through the printout from the
W3C Markup Validation Service and it looks like the majority of the errors relate to either the theme or wordpress. I did catch quite a few problems with the most recent post on my home page. I fixed the code with the post editor, and funny enough, this was one I had no problems with. The post that doesn’t display correctly – third post on home page – didn’t appear in the markup validation.
Using the Chrome browser’s Inspect Element I noticed that my regular html links (only using <a href="URL.com">Link Name</a>
and no additional style tag, are receiving this div style:
`div.tag-links a {
background-color: #efefef;
padding: 0px 10px;
float: left;
margin: 10px 10px 0 0;
font-size: 14px;
border-radius: 5px;
-moz-border-radius: 5px;
-khtml-border-radius: 5px;
color: #515151;
}`
… which is the style meant only for tags.
The beginning of said post, has
<div id="content">
and within that, the post is described as
<div id="post" class="post-355 post type-post status-publish format-standard hentry category-musings tag-cognition tag-color tag-links tag-medium tag-swatch">
>.<
Oh. My. God.
I just realized in the middle of writing this post, the text from the tag names that belong to the post are included in the DIV CLASS for the post. Which means that because my post is about recommended links, and one of the tags is “links,” this is being read by the CSS as <div id="post" class="blah blah tag-links blah blah">
.
tl;dr
You cannot tag a post with the word “links” in this theme, or every link style in the post will inherit the tag style.
Very weird, but at least it’s an easy fix. I killed all tags “links.”