IMG_2153

Flipping the Sidebar in Twenty Ten with Custom CSS

For a project I’m working on, I wanted to take the sidebar in Twenty Ten and move it to the left side instead of the default. I played with it for a while and received some help from my colleague Ian Stewart, who kindly pointed out that I’d typo’d a CSS comment. (That wasn’t completely embarrassing.)

Turned out that at one point I’d had it and didn’t know it. Thanks again, Ian.

To post for my own recall and for anyone who might be looking to do it, here’s what to add to your WordPress.com Custom CSS if you’d like a left sidebar:

/* LAYOUT: Two columns-reversed
   DESCRIPTION: Two-column fixed layout with one sidebar LEFT of content */

#container {
float:right;
width:100%;
margin:0 0 0 -240px;
padding:1em 0;
}

#content {
margin:0 20px 0 280px;
}

#primary,#secondary {
float:left;
overflow:hidden;
width:220px;
}

The Word of the Day is “Derivative”

Matt on the WordPress.org blog:

If WordPress were a country, our Bill of Rights would be the GPL because it protects our core freedoms. We’ve always done our best to keep WordPress.org clean and only promote things that are completely compatible and legal with WordPress’s license. There have been some questions in the community about whether the GPL applies to themes like we’ve always assumed. To help clarify this point, I reached out to the Software Freedom Law Center, the world’s preeminent experts on the GPL, which spent time with WordPress’s code, community, and provided us with an official legal opinion. One sentence summary: PHP in WordPress themes must be GPL, artwork and CSS may be but are not required.

This has been a discussion in the WordPress community for a little while now, with the rise of both sponsored and commercial themes and the authors of many of those themes claiming full copyright or a subset of Creative Commons over them in order to protect them from redistribution or changes. I’m pleased to see that there’s an authoritative word on it now, and also pleased to know that the WordPress theme directory (and as of 2.8, in-admin theme browser) will only contain themes that are licensed by the GPL or are GPL-compatible (for WordPress, this also means making the CSS and Javascript GPL).

The WordPress.org site now even has a directory of those theme developers/development houses that are selling GPL themes—there have been a couple of groups switching their licenses as of late—to help promote them and support their decision to embrace the GPL as a license structure for their themes. That’s a great idea, and I hope it convinces other theme authors to make the switch.

Some people might argue that it’s impossible to create a business structure based around something that is GPL-licensed, but if you take a good look around, there are many companies who now fully embrace open source (using the GPL, LGPL, GFDL, or even the OSL) as a way of life and a way of doing business who are doing quite well in offering consulting or expanded support, selling a base or preconfigured package, or offering other services that are built upon or extrude from their contribution to the open source community. Doing business this way earns you points, contributes to the Internet community as a whole, and gains you the support of dedicated volunteers to help make your product better. What’s not to like?

Brian Gardner points out:

This also clearly illustrates Matt’s view that people can (and will be endorsed if they do with it with the GPL License) make money using WordPress.

Of course they can. Automattic makes money using WordPress. There’s a virtual army of consultants out there who make money using WordPress. I’ve made money using WordPress. And the endorsement area on WordPress.org is no small beans. I believe that listing page will prove to be lucrative for those theme houses who have chosen to go GPL.

UPDATE: Daniel Jalkut speaks to the GPL as an imposition on those who might want to make contributions to a project:

Speaking of GPL succeses, WordPress is itself an example of monumental success. All of its developers have something to be immensely proud of. But whenever I am reminded that WordPress is GPL, my passion for it takes a bit of a dive. I’m more comfortable with the true freedom of liberally-licensed products. If a liberally-licensed blog system of equal quality, ease of use, and popularity should appear, my loyalties to WordPress would not last long. It’s your party, and you’re entitled to write the guest list. But take a look around the room: not as many folks as you’d hoped for? Liberally-licensed projects are booming. Speaking for myself, a developer who has been to all the parties, I’m much more likely to pass through the door that doesn’t read “GPL Only.”

His objections and points are noteworthy. One of the things that popped into my mind, however, is that WordPress is—for good or ill—bound by the GPL to remain GPL-licensed, as WordPress itself is a derivative of b2/cafelog, which was licensed under the terms of the GPL. (I think that’s how it works; I’m far from a GPL expert.)

UPDATE TO THE UPDATE: Matt responds to Daniel’s feelings regarding the GPL and restrictiveness:

It’s user freedom that the GPL was created to protect, just like the Bill of Rights was created to protect the people, not the President. The GPL introduces checks and balances into an incredibly imbalanced power dynamic, that between a developer and his/her product’s users. The only thing the GPL says you can’t do is take away the rights of your users in your work or something derived from a GPL project, that the user rights are unalienable. You are free to do pretty much whatever you want as long as it does not infringe on the freedoms of others. (Sound familiar?)

That’s what software freedom means to me, and it’s something I believe in strongly enough to fight for and defend even when it’s not the easy or popular thing to do. (Especially this weekend as we celebrate the original “fork” of the US from from England.)

(Photo credit: Untitled by flickr user elloa.)

It’s Kind of Like a Change of Clothes, Only the Site Is Missing a Sock or Two

The acute of vision will notice that I just switched over the blog to a brand new theme that I’ve been developing in my spare time over the past couple of weeks. I was going to wait a touch longer to get a few more things in there, but I’ve grown to like it so much that I wanted to port it over, even if it’s not really done yet.

There are a few more things in my TODO list for the redesign, including fine-tuning the look of individual posts and pages, which right now are very hit-or-miss, and I have a couple more post styles that I haven’t added yet. I got around to styling my links posts this time (finally), so they wont’ look as ugly as they had before.

If you notice something out of sorts, let me know. It will be a couple of days before I have the opportunity to go back over the stuff I’ve missed, but I’ve had a lot of fun working with this redesign to integrate the tumble-like style I’d been working with into a new aesthetic. It’s very monochromatic, and any use of color is there to draw your attention intentionally. There’s only one image in the theme of any kind, and it’s my first attempt in a very long time at a pure-CSS layout.