29 Jul 2009
My First Theme

As you may have noticed, I popped in a new theme a couple days ago.

The code is based on Ian Stewart’s “How To Create a WordPress Theme: The Ultimate WordPress Theme Tutorial“, which I highly recommend.

I’ve hacked up the code and had a lot of tedious fun sorting out the CSS ordering dependencies. Don’t be surprised if there is some breakage here and there, since I’m still learning and experimenting. If you notice anything odd or broken, please let me know.

Obviously, I’m not a designer — I just tweaked the CSS to get something up and running. I’ll worry about esthetics and images, if any, later. Once I’m through the initial hacking and playing around, I’ll post a writeup and provide a download link, in case anyone is interested.

Update: 2009-07-30
I’ll actually explain what I’ve done in a later post, but just in case you look at the CSS or view source, some things will look a little squished … because they are. I prefer to work on code with plenty of whitespace and formatting, but spurious w/s can play havoc with layout, so I run my code through this before installing:

  1. #!/usr/bin/perl -w
  3. while(<>) {
  4.     chomp;          # eat end-of-line
  5.     s/^\s+//;       # eat leading whitespace
  6.     s/\s+$//;       # eat trailing whitespace
  7.     s/\s+/ /g;      # convert multi-character whitespace to single space
  8.     next if /^$/;   # skip blank lines
  9.     print $_, "\n";
  10. }
  12. __END__

All handled automatically with make, by the way.

Category: meta
Tags: , , ,
(comments closed) | (trackbacks closed) | Permalink | Subscribe to comments |

Site last updated 2014-02-05 @ 19:22:45; This content last updated 2009-07-30 @ 06:57:03