Custom WordPress Hooks and Filters in Thematic 0.6

Thematic version 0.6 is an upgrade I didn’t intend on making so quickly and there’s been some changes. Here’s a weird one: when every other WordPress theme author is desperately trying to add more and more settings to their theme options page, I took an option out. Even weirder: it made the theme better. How? I started adding custom hooks and filters to Thematic.

This is something I’ve wanted to get started on for a while so I’m glad it’s finally here.

Custom WordPress Hooks in Thematic 0.6

There are two new custom WordPress hooks in Thematic version 0.6: thematic_belowheader() and thematic_abovefooter(). You can find them in header.php and footer.php, respectively. I’m really excited about this small—but powerful—addition to Thematic. Almost anything you can think of can now be loaded into the theme, just below the header and just above the footer, by taking advantage of your Child Theme functions.php.

Now, I haven’t done anything exciting or creative with this yet—that I can show you—but here’s the outline of some functions that’ll get you started on taking advantage of the new hooks. Remember, these go in the functions.php of your Child Themes.

// Hook into the area below the header
function childtheme_helloworld() { ?>
     <h2>Hello World!</h2>
<?php }
add_action('thematic_belowheader','childtheme_helloworld');
// Hook into the area above the footer
function childtheme_goodbyeworld() { ?>
     <h2>Goodbye Cruel World!</h2>
<?php }
add_action('thematic_abovefooter','childtheme_goodbyeworld');

There you have it. That’s all you need to get started with the Thematic custom WordPress hooks. Fool around with it. Try it out with WordPress conditional tags. See what you can come up with.

Now for the filters. I think you’ll be impressed with the power filters give you over your theme. Continue reading

Thematic Version 0.6 Is Out

This is just a quick note to say that Thematic version 0.6 is out. I had to make a few changes to have it included in the themes directory and, of course, those changes turned into monumental changes. Check out library/functions/hooks-filters.php if you don’t believe me. I’ll write more about it later but I’d like to give special thanks to Scott Wallick for helping me to get where I wanted to be with this release. Anyway, download it now from the WordPress Themes Directory. Thanks for using Thematic!

WordPress Theme Release Post Template

WordPress Theme Authors: In response to How to get featured in our Daily Releases on Weblog Tools Collection, I’ve made a template for posting your WordPress theme releases to the Weblog Tools Collection forum. Here it is for anyone that wants to use it. Enjoy.

<strong><a href="" title="Theme URL">Theme Name</a></strong>
License: license-type

Short description of the theme. Widget ready? Supports gravatars? Options page? One, two or three column theme? What colors is it available in? Is the header customizable?

<ul>
<li>Point one</li>
<li>Point two</li>
<li>Point three</li>
</ul>

<a href="" title="Theme Demo">Theme Demo</a> or <a href="" title="Theme Screenshot">Screenshot</a>

Feel free to use or adapt for your own theme releases.

Use WordPress As a CMS With The Travailler Theme

For a while now I’ve wanted to release a WordPress theme for small to medium-sized businesses that would allow them to quickly set up a professional, smart-looking website. And today, I’d like to introduce you to Travailler, the WordPress theme that puts your blog to work.

Check out the demo by clicking on the big image below and then come on back and read on.


Continue reading

Thematic 0.5 Ready for Download

Thematic 0.5 is ready for download. I’m not sure why I’ve held on to this one for so long. I guess I’ll have to just hurry up with 0.6 then, won’t I? Here’s a list of some of the most notable changes.

  • Removed the link to the IE8 Javascript library. It seemed, after all, to be a bit of bloat that Thematic just didn’t need (but I’ll show you how to add it back in below)
  • I added a new grid background to the images folder (960_grid_12_col_21px_height.gif). It’s the same grid I created for ThemeShaper when I did the latest redesign. Now it’s yours too.
  • Thematic is now fully translatable and localized (I’d forgotten about one errant “By” in previous versions). Indeed, it even includes a Français translation by Michaël Foussard. Merci, Michaël!
  • Probably most exciting of all, I went and did an SEO audit on Thematic (the definitive guide to WordPress SEO was a big help). And I’m mostly, pretty, 99.9% certain that there’s not much else I can do to optimize it. But prove me wrong, please! I want Thematic to be the best it can be.

Continue reading