ThemeShaper Forums » Thematic


Override comments.php with a function

(1 post)
  • Started 11 years ago by rafi5749
  • This topic is not resolved
  1. rafi5749


    I want to replace Thematic's comments with Facebook Comments. With a child theme it's really easy, just add a file comments.php that looks like this:

    <?php thematic_abovecomments() ?>
    <div id="comments">
    <div id="fb-root"></div>
    <script src=""></script>
    <fb:comments href="<?php echo get_permalink($post->ID); ?>" num_posts="10" width="530"></fb:comments>
    </div><!-- #comments -->
    <?php thematic_belowcomments() ?>

    BUT, I would like to accomplish this with a plugin. Anyone know how I could override the parent's comments.php with a function instead of a template?

    Posted 11 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.