• Resolved Seth Long

    (@sethlong)


    The comments feature doesn’t appear to properly position the comments and form (at least with my theme). With FB comments OFF, my comments appear below my author bio box (right where my theme wants them). With Facebook plugin 1.0 and FB comments turned ON, they appear directly below the body of my post but above the author bio box, which is not where my theme calls for comments.

    Worse, the theme’s comment system then reports “no comments yet” where the comments are supposed to appear.

    Theme is Canvas 5.0.1 from WooThemes.

    https://www.ads-software.com/extend/plugins/facebook/

Viewing 16 replies (of 16 total)
  • nickd32

    (@nickd32)

    @elmo5 – I found a cleaner way that only affects the FB comments (and doesn’t disturb the other elements… like buttons, etc.)

    First, from the Codex…

    It is also worth noting that you may need to prioritise the removal of the filter to a hook that occurs after the filter is added. You cannot successfully remove the filter before it has been added.

    The trick is to add a new action hook that occurs after init — so I just chose wp_head, but there is a list of other action hooks you could use.

    Here is my code.

    add_action( 'wp_head', 'fix_fb_comment_placement' );
    function fix_fb_comment_placement() {
    	remove_filter('the_content', 'fb_comments_automatic', 30);
    }

    Then, in your comments.php file (or wherever you want the comments to show up, include this line of code:
    <?php echo fb_comments_automatic(''); ?>

Viewing 16 replies (of 16 total)
  • The topic ‘[Plugin: Facebook] Comments integration’ is closed to new replies.