ThemeShaper Forums » Thematic

Placing content withing the thematic_postfooter

(2 posts)
  • Started 10 years ago by jasuttie
  • Latest reply from em hr
  • This topic is not resolved
  1. Without rewriting and replicating the entire thematic_postfooter() in my child functions is there a way I can use a filter to place:

    if (function_exists('sharethis_button')) { sharethis_button(); }

    before the end of the <div class="entry-utility"> tag?

    Basically I want the postfooter to be like this:

    Posted in (category) | Leave a comment | Share This

    Posted 10 years ago #
  2. You'll have to get the code from the share this website and then add it to $share_this_code in this function.

    function child_postfooter_link($output) {
    	$share_this_code = ' '; // put your "share this" code here
    	$my_meta_sep = '<span class="meta-sep meta-sep-share-this"> | </span>';
    	$my_code = $my_meta_sep . $share_this_code . '</div><!-- .entry-utility -->';
    	return preg_replace('/<\/div><!-- .entry-utility -->/',$my_code, $output);
    Posted 10 years ago #

RSS feed for this topic


You must log in to post.