Search for: Log In Free Support [Support request] Adding Facebook comments, single PHP file Home › Forums › Support › Adding Facebook comments, single PHP file This topic has 4 replies, 2 voices, and was last updated 4 months, 3 weeks ago by Elvin. Viewing 5 posts - 1 through 5 (of 5 total) Author Posts October 8, 2020 at 7:30 pm #1479486 R K 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 <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 October 8, 2020 at 7:31 pm #1479489 R K ps: i just noticed a ‘comments php’ file…do i change that there? October 8, 2020 at 8:04 pm #1479507 ElvinStaff Customer Support 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/ A wise man once said: "Have you cleared your cache?" October 8, 2020 at 9:12 pm #1479544 R K Many Thanks, i managed to sort it out …great advice October 8, 2020 at 9:27 pm #1479552 ElvinStaff Customer Support Nice one. Great work. No problem. 🙂 A wise man once said: "Have you cleared your cache?" Author Posts Viewing 5 posts - 1 through 5 (of 5 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In
<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