ThemeShaper Forums » Thematic

single-top, single-bottom, single-insert

(6 posts)
  • Started 6 years ago by Erin
  • Latest reply from Erin
  • This topic is resolved
  1. Erin
    Member

    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?

    Posted 6 years ago #
  2. 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.

    Posted 6 years ago #
  3. Erin
    Member

    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.

    Posted 6 years ago #
  4. 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 the_content?

    Posted 6 years ago #
  5. Plus, you totally have to show off your theme. Especially if you're really customizing things.

    Posted 6 years ago #
  6. Erin
    Member

    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?

    Posted 6 years ago #

RSS feed for this topic

Reply

You must log in to post.