In my last post, I mentioned that I was worried about having to dig too deep into the mess of PHP/HTML that is WordPress templates in order to come up with a decent theme for my new resurrected blog. Whenever I look at other people’s code, I tend to find about a million things I hate, and I start ripping things out until I end up rewriting everything from scratch. I guess I’m just a perfectionist, and I very rarely come across developers who strive for the same level of beauty and elegance in their code as I do (which is why I could never be a full-time developer in the corporate world).
Anyway, I came across this Sandbox theme last night, which bills itself as a “theme for themers.” The cool thing about it is that you don’t have to touch the PHP template files at all. After installing it like any other theme, you just create a new blank theme directory and drop your own style.css file in it. Then you tell WordPress that your theme (consisting of a single style.css file) should use the Sandbox theme as a template:
/* THEME NAME: Gyrate THEME URI: http://www.gyrate.org/ DESCRIPTION: A very stupid theme VERSION: 0.1 AUTHOR: Mike AUTHOR URI: http://www.gyrate.org/ TEMPLATE: sandbox */
Essentially, you’re overriding the style.css file from Sandbox with your own. Pretty awesome. So now I’m in the process of porting over the CSS file from old school Gyrate (circa 2003 or so?) and reminiscing about wannabe computer “hackers,” camgirls, and idiots from the E/N scene. Yup, those were the days…
4 Comments
Like seeing you back to your old tricks.
this reminds me of the sugar hill gang of webdesign
“I vary rarely come across developers who strive for the same level of beauty and elegance in their code as I do”
Ignoring the fact that you misspelled ‘very’, I couldn’t possibly agree with your comments more. As a full time developer in the corporate world, I often find myself becoming angry at other people’s shabby code.
Not to worry. You can’t win.
– aj
im glad you guys are still there to correct my spelling!