More for my own benefit than anything else, I want to list the revisions I’ve made to my blog theme over the past couple evenings. Feel free to ignore this post entirely.
When I switched to WordPress back in the Fall, I was extremely grateful to find that someone had updated the “Rubric” theme I had been using in B2Evolution for WordPress 1.5. When I upgraded again to WordPress 2–maybe even before then–I began to notice that my theme was different than all the other themes. It lacked a number of files: specifically, header.php, footer.php, arc-con.php, page.php, sidebar.php, searchform.php, 404.php.
After doing a little reading, I learned that a theme should properly have all of these files, each one to be called by a “get” PHP function in the main index.php file. My theme included the sidebar, footer, header, and assorted other elements in the index.php itself.
So beginning two nights ago, I began breaking down my index.php file into its component parts. I used another theme as a guide as to what files my theme should have, and what they should contain.
Once finished, I also did some editing of the content of each file. Now that I had a footer.php file, I could put stuff in it. I added a disclaimer and a sitemeter. I removed the calander from the sidebar, seeing it as extraneous. I adjusted the positioning of my sidebar to make it even with the content box.
I created an archive page. I hope to make it a little more dynamic using one of the archive plugins I’ve seen on other sites.
I added code to my index.php file to include a link for “previous entries” and “next entries” at the bottom of each page, and at the bottom of search results. The lack of these links was a major flaw in the original design, allowing people only to see the first ten posts in any search list.
I’ve just about given up on finding a theme I like better than this one, and I am going to content myself with making it work the way I want it to. So thank you Hadley Wickham and Tom Raftery, wherever you are. I feel like I’ve been able to indirectly learn a lot about PHP from both of you, and in the bargain I’ve made this theme uniquely mine.