[Support request] Adding Facebook comments, single PHP file

Home Forums Support Adding Facebook comments, single PHP file

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #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

    #1479489
    R K

    ps: i just noticed a ‘comments php’ file…do i change that there?

    #1479507
    Elvin
    Staff
    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?"

    #1479544
    R K

    Many Thanks, i managed to sort it out …great advice

    #1479552
    Elvin
    Staff
    Customer Support

    Nice one.

    Great work. No problem. 🙂

    A wise man once said:
    "Have you cleared your cache?"

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.