I suppose I’m the only one who didn’t know this, and I’m a little ashamed to even blog it: apparently you can apply multiple classes to a single HTML tag! I suppose that’s the downside to learning by solving problems – if something doesn’t manifest itself as a problem, you never learn it.
The WP theme in use here at archenemyblog features some PHP functions that gather info about each post, and add classes to them, like:
<div id="post-914" class="hentry p7 publish author-jmd category-general y2007 m03 d08 h10">
letting me do things like
.author-jmd {
background-color: #D1E7EF;
}
to prolific co-blogger JMD’s posts. This looks to be extremely handy.
(I knew that you were supposed to be able to style just about anything you could think of with Scott’s WP themes, but didn’t realize this was how it was done until I got around to looking at the code)
4 Comments
“prolific co-blogger JMD’s posts”
Wise ass!
Well, yeah.
I suppose I’m the only one who didn’t know this, and I’m a little ashamed to even blog it:
Maybe everyone you know knows that but I didn’t. A long standing ‘to-do’ for my blog is to add a sig for each person’s post .. in the post. The idea being that we have many voices and it’s sometimes hard to tell who is who.
Your post bumped that to-do up a few notches – thanks.
Actually, I don’t know anyone who knows anything about this kind of stuff. My isolation sort of fed into my assumption that I was the only one who didn’t pick this tidbit up until now. ;-)
I think you definitely want to pick up the Sandbox theme, then. It’s easily skinnable and one of the skins it comes with is a Sanbox version of the default WP theme. You could re-create the short header bg graphic you’re using at Liftport, and then use the semantic mark-up to style each blogger’s posts. One thing I wanted to try to use it for is adding sigs with small photos of individual bloggers to their posts, for a corporate client of mine. I’m not sure if I can accomplish exactly what I’m envisioning with CSS alone, but we’ll see… Maybe that’s something that might work for you as well.
Anyway – glad I was useful!
One Trackback
[...] Sandbox theme (chock full o’ semantic classes). In the process I managed to lose the stylings for co-blogger JMD’s posts, and probably hosed a few other things as well. I’ve got a couple of ideas for a design here, [...]