ThemeShaper Forums » Thematic

[closed]

Completely remove thematic_postfooter

(7 posts)
  • Started 3 years ago by blake
  • Latest reply from samalama
  • This topic is not resolved
  1. I realize that I can override thematic_postfooter like this:

    function my_new_postfooter($postfooter) {
      // do stuff
      return $postfooter;
    }
    add_filter('thematic_postfooter', 'my_new_postfooter');

    But the only way I have found to remove it is like this:

    function remove_thematic_postfooter($postfooter) {
      // do nothing
    }
    add_filter('thematic_postfooter', 'remove_thematic_postfooter');

    I'm pretty sure that's not the right way, even though it works. I am combining the post meta and footer, and so I just want to stop Thematic from outputting its post footer.

    Posted 3 years ago #
  2. someone asked similar regarding nav-above
    see http://forums.themeshaper.com/topic/how-to-remove-nav-above-help-me

    hope this helps

    Posted 3 years ago #
  3. Following the thematic_nav_above function, there's this:

    add_action('thematic_navigation_above', 'thematic_nav_above', 2);

    So I understand how you would remove it as demonstrated in the other thread.

    But thematic_postfooter is just a function called in the Loop (in my case, the thematic_single_post function). I guess I could override the whole thematic_single_post function, but getting rid of the thematic_postfooter is all I wanted to do.

    Posted 3 years ago #
  4. your way is not totally wrong. (hey if it works it is never wrong in my book), it is perhaps just a touch outdated now that we have all the new spiffy override functions.

    well you could override all the loops to manually remove the postfooter function... which seems tedious

    or you could just make the postfooter always empty

    function childtheme_override_postfooter(){
        //no bacon here
    }
    Posted 3 years ago #
  5. @helga

    ya obsessed with bacon

    Posted 3 years ago #
  6. actually i think i saw it first used by Ian in the original thematic docs whenever he was at a loss for some dummy content.

    but well... i do like bacon.

    Posted 3 years ago #
  7. Viking girl. YOU ROCK! Thanks!

    Posted 3 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.