Facebook Comment Box w/ Genesis???

Community Forums Forums General Discussion Facebook Comment Box w/ Genesis???

This topic is: not resolved

This topic contains 4 replies, has 2 voices, and was last updated by  braddalton 11 months, 1 week ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #57966

    thrillionaire
    Participant
    Post count: 2

    I’m trying to install the Facebook “Comments Box” on my Church Child theme, right above my current WP comments. However, every online tutorial says that I must add FB’s code snippet in the “single.php” file, but I can’t find that file in the Child theme editor…I can only find it in the Genesis editor. However, when accessing the “single.php” (“Single Post”) Genesis file, I see a warning that says I should not edit this file. So how do I add this code snippet into my theme?? Thanks!

    #57971

    braddalton
    Participant
    Post count: 8876

    Please paste the code snippet on Pastebin and link to it from here. Thanks.

    Have you tried the official Facebook plugin and dragged the Comments widget into an after post widget?


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #57975

    thrillionaire
    Participant
    Post count: 2

    Thanks Brad! No, I haven’t used a plugin yet, because I often have problems with plugins after WP updates. I didn’t know that FB had their own plugin, so I’ll check it out.

    It’s just the code snippet that you generate from here: https://developers.facebook.com/docs/reference/plugins/comments

    And the Genesis warning says: “WARNING: This file is part of the core Genesis framework. DO NOT edit this file under any circumstances. Please do all modifications in the form of a child theme.”

    #57976

    thrillionaire
    Participant
    Post count: 2

    …also, will this FB plugin replace my WP comments? I don’t want to lose the SEO from those comments.

    #58002

    braddalton
    Participant
    Post count: 8876

    There’s 3 code snippets you need to install.

    The javavascript should be loaded using the wp_register_scripts and wp_enqueue_scripts functions.

    The HTML for the comments box:
    [html]
    <div class="fb-comments" data-href="http://example.com&quot; data-width="470"></div>
    [/html]

    A new after single posts widget or hook the script in directly using a custom function.

    What theme are you using? Link to your site please.


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

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

You must be logged in to reply to this topic.