Hi,
I have the same problem… Instagram, Google+, Youtube and Twitter are OK, but the facebook counter doesn´t work!
I’ve set the plugin on facebook developers exactly in the same way of the documentation.
Bogdan,
After many tries I decided to use Disqus Plugin, it fits better on the theme comparing to facebook plugin, easier to set it. Anyway, I really appreciated your suport!
Thank you!
Felipe
Hi,
I tried again with the codes but nothing! I’m gonna use the facebook comments plugin for a while, the problem is that the box is between the sharing bottons and the tags, I would like to see it in the same place as the original comments…
A new question now is how to take out the original comments from my website, because now it shows both comments box.
Thank you?
-
This reply was modified 10 years by
FSborz.
Hi Bogdan,
I did the changes in the header.php exactly in the way you said in the screencast. I changed single_template 1, updated my website to see if it was worked, but it didn´t. I did it with the single_template 2, it didn´t work as well… I did the changes in all singles_templates exactly in the same way of the screencast, but nothing has changed im my blog. This is strange I know, I tried with facebook comments plugin for wordpress to check if the problem was with the facebook app, but with facebook comments plugin it worked, so the problem is not the app.
I reviewed with a lot of attention the codes, I moved the closing php tag to the end of the code like you said, I just replaced the code, I let the space, everything was in the same way, but nothing changed.
I’m using the babyblog demo as a base of my website, I don´t know if it has some relation with that.
Thanks again!
Hi,
I did what you said but It din´t work yet…
The header.php file was like that:
<body <?php body_class() ?> itemscope=”itemscope” itemtype=”<?php echo td_global::$http_or_https?>://schema.org/WebPage”>
<div id=”fb-root”></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = “//connect.facebook.net/pt_BR/sdk.js#xfbml=1&version=v2.6&appId=1006446862796383″;
fjs.parentNode.insertBefore(js, fjs);
}(document, ‘script’, ‘facebook-jssdk’));</script>
<?php /* scroll to top */?>
<div class=”td-scroll-up”><i class=”td-icon-menu-up”></i></div>
<?php locate_template(‘parts/menu-mobile.php’, true);?>
<?php locate_template(‘parts/search.php’, true);?>
<div id=”td-outer-wrap”>
<?php //this is closing in the footer.php file ?>
It´s a but different than the example you showed, the exemple you showed was a newsmag, my one is a newspaper.
The loop-single.php was like that:
<?php echo $td_mod_single->get_content();?>
<div class=”fb-comments” data-href=”<?php echo https://portalmaesefilhos.com.br/ ($td_mod_single->post->ID); ?>” data-width=”600″ data-numposts=”5″></div>
</div>
So, I just paste the in the files you showed, but I went to my website and nothing changed!
I didn´t make any change in the single.php file, I saw you marked with a red box thos files, but I didn´t do anything in there.
Now I will put the orinal codes in header.php and loop-single.php and think what I can do to solve it.
Thanks again!
Hi,
I replaced the code you highlighted ($td_css_cls_pb_padding_side = ‘td-pb-padding-side’;) to the code above:
<div id=”fb-root”></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = “//connect.facebook.net/pt_BR/sdk.js#xfbml=1&version=v2.6&appId=2032486450310354″;
fjs.parentNode.insertBefore(js, fjs);
}(document, ‘script’, ‘facebook-jssdk’));</script>
Nothing changed! After that I came back with the highlighted code and replaced it with this one:
<div class=”fb-comments” data-href=”https://portalmaesefilhos.com.br/” data-width=”600″ data-numposts=”5″></div>
Nothing changed again! After that I tried with both codes got from facebook developer, but it didn´t work as well.
Should it work or I did it tottaly wrong?
Thanks again!
Hi,
I’m still not so sure how to do it, the thing is that I’m new on it.
I’ve found some tutorials of how to implement facebook comments without using a wordpress plugin. The step by step was very clearly, but the thing I’m in doubt is about this path showed in (appearance>editor>comments.php):
<?php
// – Important!
// – For overwriting comments’ functionality in child-theme, copy the file ‘comments.php’ from the
// following theme path (../themes/THEME_NAME/includes/wp_booster/comments.php) to the child-theme root path,
// and NOT this comments.php file you are reading from.
require_once(‘includes/wp_booster/comments.php’);
Where do I paste de FACEBOOK COMMENTS CODE?
Which folder, place…
Thank you very much!