New Theme, Updated Code

I’ve decided on a theme for my blog that I feel comfortable using without tweaking the design too much more. I’ll still be making minor tweaks and enhancements, but at least I won’t be devoting all my blogging time to making a design. Since I’m mostly content with it, I’ll be able to devote a larger portion of my time to actually writing new content.

The theme I chose, though, was only written and available for WordPress 2.5. I know how to work with PHP and HTML/CSS, so I jumped right in to make the modifications necessary to support the new WordPress 2.6 and 2.7 features. WordPress 2.7 added an entirely new comment loop and threaded comments, therefore most of the comment code had to be rewritten to support it. In addition to that, a new function was added to get the classes used for styling each entry:

The post_class() outputs the class=”whatever” piece for that div. This includes several different classes of value: post, hentry (for hAtom microformat pages), category-X (where X is the slug of every category the post is in), and tag-X (similar, but with tags). It also adds “sticky” for posts marked as sticky posts. These make it easy to style different parts of the theme in different ways.
[http://codex.wordpress.org/Migrating_Plugins_and_Themes_to_2.7]

Besides the required changes to make the theme work fully with WordPress 2.7, I also added in a few personal features. First, I made the H1 on the pages dynamic. It was originally constructed so that the title of the blog appeared in the H1 for every single page. I have seen it written multiple times that the title of the blog should only be in an H1 on the main page of the blog. On the individual content pages, the title of the content (post or page) should be contained within an H1. This is supposed to help with SEO. Second, I added my Twitter loading javascripts to the footer. With the load script in the footer instead of in a widget, only a very minimal portion of my site doesn’t load if Twitter goes down. Third, I added my Google Analytics code to the footer as well.

Here's a screenshot of the new threaded comments. Notice the 'Reply' link on the left side if a comment can be replied to.

Here's a screenshot of the new threaded comments. Notice the 'Reply' link on the left side if a comment can be replied to.

I would like to make a settings panel for administering options for the theme, such as my new Google Analytics and Twitter support. I feel that this would be useful for myself, but possibly more beneficial to others. If there is sufficient demand (or any :) ), then I may try to contact the authors of the dark theme for WordPress to see if I can release my own version. If I do that and get permission, I will definitely be adding a settings panel with a multitude of options.

Reviving My Blog

With the start of another year, and the dawn of a new era for the world, this seems like a good time to restart my blog. But this time, I will do so with a commitment to myself. It’s time to get past the excuses I have so easily found in the past and begin to write entries for my blog.

if you don’t write something, then there will never be anything written

For a long while, I believed that content was the most important aspect of a blog. I became stuck on the idea that I needed to write incredibly thought provoking entries and ended up writing nothing. However, if you don’t write something, then there will never be anything written. (This sounds incredibly obvious as I write it down, but hey, I wrote it down.) This has led me to the conclusion that a new methodology for writing blog entries is needed. As a result, there may be an overwhelming multitude of smaller entries interspersed by a few larger entries. As long as I keep the flow going, though, I hope that I will find the resolve to continue this for a long time to come.

My decision to start blogging again was spurred from many sources. While working on various projects, I have discovered that most of the time, I find almost all of the answers I need within blogs. I’ve been using blogs long enough now, without contributing, that I feel it is my turn to give a little back. One day, I stumbled across a question on StackOverflow that hit home: How can you tell whether you’re ready to start your own blog?. After reading that, I knew that I had to make the time and get started, regardless of work schedule. Waiting for work to quiet down was only going to delay it even more.

I picked a schedule for posting after following a little advice from an entry by Jeff Atwood, How To Achieve Ultimate Blog Success In One Easy Step:

When people ask me for advice on blogging, I always respond with yet another form of the same advice: pick a schedule you can live with, and stick to it. Until you do that, none of the other advice I could give you will matter. I don’t care if you suck at writing. I don’t care if nobody reads your blog. I don’t care if you have nothing interesting to say. If you can demonstrate a willingness to write, and a desire to keep continually improving your writing, you will eventually be successful.

The personal posting schedule that I am going to strive for is at least one post per week. I can only imagine that at the beginning there will be a series of small ‘testing the water’ posts as I attempt to get my blog looking like I want. I also would hazard a guess that some (or a lot) of my grammar will be malformed and a few spellings will be wrong. My writing skills have gotten a little rusty, but through continued perseverance, I hope to improve that.

Finding and getting ideas out may be a little difficult at the onset since I’m not sure what to write about or where to start. To achieve this, I’ve thought up a couple of ideas that I believe will help me to find the quantity of ideas I need to get started. First, I’m going to keep a small notebook beside my bed so that as I’m falling asleep, I can write down any ideas that come to mind. I have a tendency to become more reflective just before I become too tired to think. Second, if I’m at work and I think of an idea or solve a problem that I think would make a good post, I’m going to send a small email reminder to myself to jog my mind later. A filter that checks for a specific word in the subject and tags the email appropriately would probably be very useful for this. I don’t have any free (or flexible/20%) time at my busy current job, so I won’t be writing any blog entries during those hours. If the topic specifically applies to work and I get approval to write a blog entry on company hours, I’ll tag or denote the post in some obvious way in the interest of full disclosure.