Viewing 6 replies - 1 through 6 (of 6 total)
  • Yes. If you want to show the Facebook comment box on your posts, go to appearance > editor and select ‘content-single.php’. Add the following code at the bottom:

    <!-- Facebook -->
    <?php 
    
    if(is_single() && get_option('simple_fb_comments_posts') == 'on' && get_option('simple_fb_comments_views') == 'on' || (is_page() && get_option('simple_fb_comments_pages') == 'on' && get_option('simple_fb_comments_views') == 'on') || ((is_home() || is_front_page()) && get_option('simple_fb_comments_homepage') == 'on' && get_option('simple_fb_comments_views') == 'on'))
    
    {
    echo '<fb:comments-count href='.get_permalink( $post->ID ).'></fb:comments-count> comments';
    }
    
    if ((is_single() && get_option('simple_fb_comments_posts') == 'on') ||
    (is_page() && get_option('simple_fb_comments_pages') == 'on') ||
    ((is_home() || is_front_page()) && get_option('simple_fb_comments_homepage') == 'on'))
    {
    echo'<div>'.get_option('simple_fb_comments_countmsg'). "</div><div class=\"fb-comments\" data-href=\"".get_permalink()."\" data-num-posts=\"".get_option('simple_fb_comments_num')."\" data-width=\"".get_option('simple_fb_comments_width')."\"></div>";
    }
    
    ?>
    <!-- end Facebook -->

    Now go to Plugins > Editor, select “Simple Facebook Comments’ and delete or uncheck the following section:

    //COMMENT BOX
    function fbcommentbox($content) {
    
    if(is_single() && get_option('simple_fb_comments_posts') == 'on' && get_option('simple_fb_comments_views') == 'on' || (is_page() && get_option('simple_fb_comments_pages') == 'on' && get_option('simple_fb_comments_views') == 'on') || ((is_home() || is_front_page()) && get_option('simple_fb_comments_homepage') == 'on' && get_option('simple_fb_comments_views') == 'on'))
    
    {
    $content .= '<fb:comments-count href='.get_permalink( $post->ID ).'></fb:comments-count> comments';
    }
    
      if ((is_single() && get_option('simple_fb_comments_posts') == 'on') ||
         (is_page() && get_option('simple_fb_comments_pages') == 'on') ||
          ((is_home() || is_front_page()) && get_option('simple_fb_comments_homepage') == 'on')) {
    
    $content .=  '<div>'.get_option('simple_fb_comments_countmsg'). "</div><div class=\"fb-comments\" data-href=\"".get_permalink()."\" data-num-posts=\"".get_option('simple_fb_comments_num')."\" data-width=\"".get_option('simple_fb_comments_width')."\"></div>";
    
      }
      return $content;
    }
    add_filter ('the_content', 'fbcommentbox', 100);

    You can look at the result here: http://www.triggr.it/web-fonts/

    Thread Starter gleenk

    (@gleenk)

    thank you

    Thanks sooo much Daan, this helped me getting the comments down just where I wanted them to be!

    Nikki @ 365Gaming.nl

    Thanks a milion times, saved me from deleteing this plugin 🙂

    ionică.

    It is a different question, but I will see if Daan knows the answer to this as well…
    How can I arrange that the comments get a notification? I get it for the normal WordPress comments but not for the FB comments…thxx

    Welcome guys/girls. I think your last question would be a feature request to the plugin builders, Nikki.

    Cheers,

    Daan

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Plugin: Simple Facebook Comments] Move Comments Below?’ is closed to new replies.