Strict Standards: Redefining already defined constructor for class bbdb in /home/themes/public_html/forums/bb-includes/db-mysql.php on line 12

Strict Standards: Declaration of BB_Walker_Blank::start_lvl() should be compatible with BB_Walker::start_lvl($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::end_lvl() should be compatible with BB_Walker::end_lvl($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::start_el() should be compatible with BB_Walker::start_el($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::end_el() should be compatible with BB_Walker::end_el($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127
Override comments.php with a function « ThemeShaper Forums

ThemeShaper Forums » Thematic

[closed]

Override comments.php with a function

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

    Hi,

    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="http://connect.facebook.net/en_US/all.js#xfbml=1"></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 3 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.


Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method GA_Filter::spool_analytics() should not be called statically in /home/themes/public_html/forums/bb-includes/wp-functions.php on line 586

Strict Standards: Non-static method GA_Filter::spool_this() should not be called statically in /home/themes/public_html/forums/my-plugins/googleanalytics.php on line 183