Over the years, I’ve developed a love/hate relationship with WordPress. A lot about it I love, a lot I simply loath.

One of the splinters in my digital side is what wordpress injects in the the <head> section as it renders an HTML document. If you’ve ever developed a WordPress theme, you undoubtedly know what I’m talking about.

As I was whipping up a simple theme for this blog, I came accross an “HTML5 Starter Theme for WordPress” apply named Bones by Eddie Machado. It includes a nice selection of features to get anyone developing a WordPress theme started, but I wanted to keep the blog simple, so I actually didn’t need most of it, but the functions.php has some distilled treasures inside.

If you take a quick peek in bones.php, you will see some extremely handy housekeeping functions (along with some entertaining comments and functions).

After gleaning what I needed, my <head> section was looking much cleaner. You can view the source of the functions.php for this Serenade theme on github.

For future WordPress themes, I may start learning more the full Bones theme… seems handy and pretty clever.