My current theme uses a DIV to float an image to the right in the single template, similar to (and in fact inspired from) the New Yorker (e.g., http://www.newyorker.com/talk/2008/08/11/080811ta_talk_widdicombe). I use custom fields to insert the images. My problem is that if I want to switch over to Thematic, it seems that none of the options to insert content in Thematic single.php seem to let me do that since they are outside the DIV.hentry. Have I got that right? Any thoughts on how to do this?
single-top, single-bottom, single-insert(6 posts)
How code savvy are you Erin? You could probably accomplish that by using the filters in 0.6.3. See Custom WordPress Hooks and Filters in Thematic 0.6 for more info.
Just code savvy enough to get into trouble, and stay there :)
Still, problem solved. Your post on hooks and filters was a big help. One of the (other) great things about your theme is that it helps non-programmers like me better understand how WP works.
Now, this is probably more of a WP than a Thematic support question...but you did open up this can of worms... What makes thematic_postheader (and wp_footer, wp_head)a hook, and the_content not a hook. I ask because I was also able to filter content in the_content using the child functions.php.
You can change the content of filters and you can add "stuff" (
add_action) into hooks. Or remove stuff (
remove_action) being added into hooks.
What are you filtering in
Thanks, Ian. I filtered thematic_postheader function as you suggested, and it works beautifully.
As for filtering the_content, I added a drop-cap first character based on Rodney Campbell's plugin (http://www.rc.au.net/blog/2006/07/27/dropcap-first-character-wordpress-plugin/). There may be better ways to do this...and in fact, it has me wondering when is it better to just use a plugin?
You must log in to post.