How to remove fb comments from excerpts

Community Forums Forums Design Tips and Tricks How to remove fb comments from excerpts

This topic is: not resolved

This topic contains 1 reply, has 2 voices, and was last updated by  SoZo 1 year, 10 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #2725

    georgef
    Participant
    Post count: 8

    Hi, I’ve added Facebook excerpts through calling a file in the functions file, like this:

    // function for Facebook comments
    function facebook_comments() {
    require(CHILD_DIR.’/facebook-comments.php’);
    }

    add_action(‘genesis_after_post_content’, ‘facebook_comments’);

    Probably not the best way to do it but nevertheless it works..

    I have one problem though that the fb comments is showing in the excerpts as well as the posts.

    I only want it to show up in the posts, not the excerpts, how can I remove them from the excerpts?

    #14699

    SoZo
    Moderator
    Post count: 1573

    You need to include a conditional statement.


    John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.