Archived topic
Adding Facebook comments, single PHP file
4 replies · Started by R K on October 8, 2020
Hi, i just updated the GP theme but in the single php file the line <?php comments_template(); ?> is no longer there.
I need to add this line
ps: i just noticed a 'comments php' file...do i change that there?
Hi,
You can follow this guide on removing/disabling comments on posts.
https://www.wpbeginner.com/wp-tutorials/how-to-completely-disable-comments-in-wordpress/
As for adding your code, you can place your code on a hook element and hook it on generate_after_content https://docs.generatepress.com/article/generate_after_content/
Many Thanks, i managed to sort it out ...great advice
Nice one.
Great work. No problem. :)
<fb:comments href="<?php the_permalink(); ?>" num_posts="10" width="680"></fb:comments>
Where do i put it on the single php file? or do i put that somewhere else?
I am trying to remove the generic comments box and get the facebook comments to work again on the site
http://www.ieltsfocus.com
Regards