andrea grossi
asked 10 years ago

How can i add facebook comment to all post on home page?

I have tried to add the code for facebook comment in the loop but it not appear.

Thanks

5 Answers
Guru
answered 10 years ago

Wouldn’t it be easier if you used the facebook comments plugin?

andrea grossi
replied 10 years ago

no, because if show the comment just inside the post
I have partially resolved the problem adding the script of facebook comment inside
“content.php”
But it show only in the first post and not in the after page
Look here
http://pilloledi.it/

andrea grossi
answered 10 years ago

I have also tried with a plugin but after the first page it not work

DominicStaff
answered 10 years ago

Hello Andrea !
At the moment, the Facebook comment can not work on the homepage, you can only use the Facebook comment in the single post.
Regards,

andrea grossi
replied 10 years ago

Hi Dominic,
thanks for the answer.
I have added facebook comment on the home page but it not work after the first page. Is it possible to fix it?

DominicStaff
answered 10 years ago

Hi Andrea !
At the moment, our theme are using infinite loading and you need to reload facebook javascript code to load facebook comment on the next page of DW Timeline theme.
Regards,

andrea grossi
replied 10 years ago

Hi Dominic,
So is i possible!?
I have tried adding facebook java script inside content.php but the code is load only in the first page.
Were i have to add it?
Thanks

Wilfred
answered 10 years ago

To resolve this issue you can go to scripts.js in /wp-content/themes/dw-timeline-pro/assets/js/scripts.js
then add following code to line 352

  FB.XFBML.parse( $('.timeline').get(0)  );



 
Hope this helps!
 

Powered by DW Question & Answer Pro