Out with the old…
… and in with the new. Behold, my first crack at a WordPress theme
.
It took me a little longer than I originally estimated. This is mainly because I’ve found more enjoyable things to do with my spare time this last week than editing PHP and CSS files. An “About Me” section with a colophon will follow soon.
I’ve gone for Simple with this version and haven’t been too ambitious where it came to dissecting the code. Inevitably you have to get your hands a bit mucky to achieve what you want, so here’s a rundown of the main things I’ve done:
- There’s nothing at all to be gained by changing all the ids and classes in the theme to match those that are used in the site’s main CSS file. I cleared out the theme’s CSS file and reassigned the styles I’d created to the existing hooks.
- Inserted my navigation block and the Mint JS include into ‘header.php’.
- Inserted my footer block into ‘footer.php’.
- I’m using Automattic’s sidebar widgets, with the following tweaks:
- Added span tags (for CSS image replacement) around the ‘Archives’ and ‘Categories’ titles in ‘/wp-content/plugins/widgets/widgets.php’.
- Linked to my RSS feed around the ‘Recent Posts’ title in the same file.
- Added my little buddy badges to ’sidebar.php’
- I added the get_sidebar() function to ’single.php’, so it would be viewable on post pages.
- Minor tweaks to ‘comments.php’ and ‘404.php’.
I’ve tested this theme under Internet Explorer 6 and 7, Firefox, Safari and Opera so I’m satisfied that it works well.
I’ve got ideas for my first redesign already though, which I intend to start work on once Refresh is up and running.









February 26th, 2007 at 1:12 pm
Well done. I really like the clean simple layout it all works really well. I think I’ve still got a bit more to learn before I attempt to change my site theme.
February 26th, 2007 at 1:45 pm
Thanks
There are a couple of tiny niggles that I want to sweep up, but nothing that will concern anyone but me.
I think I’m going to take a couple of weeks off from staring at my computer screen of an evening. After that I’ve got cunning plans…
February 27th, 2007 at 11:10 am
Good plan, I need to get a proper screen for my mac mini before I really start working on my website it’s just too difficult working off my tv sat on my bed. Plus it’s no good if I want to do other work at home in the future.
On a side note I started using CSSEdit at work, got the boss to buy it and it’s brilliant can’t believe I hadn’t tried it sooner!
February 27th, 2007 at 11:19 am
Yeah, CSSEdit is ace. I’m all for small apps made by the little guy that do one job and do it well. Much better than some bloated expensive mess (*cough* Dreamweaver).
I don’t use DW’s FTP functionality either: I use Transmit.
I’m still mulling over that idea I mentioned of posting a collection of scripts and simple systems as donationware. Who knows, maybe it will swell the “Alex wants a MacBook” fund.
Would you like to be a tester?