• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Facebook Comment Box w/ Genesis???

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

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

This topic is: not resolved

Tagged: church, comments, Facebook

  • This topic has 4 replies, 2 voices, and was last updated 9 years, 7 months ago by Brad Dalton.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • August 21, 2013 at 11:36 am #57966
    thrillionaire
    Member

    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!

    August 21, 2013 at 11:55 am #57971
    Brad Dalton
    Participant

    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?


    Tutorials for StudioPress Themes.

    August 21, 2013 at 12:06 pm #57975
    thrillionaire
    Member

    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."

    August 21, 2013 at 12:16 pm #57976
    thrillionaire
    Member

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

    August 21, 2013 at 1:40 pm #58002
    Brad Dalton
    Participant

    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:

    <div class="fb-comments" data-href="http://example.com" data-width="470"></div>
    

    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.


    Tutorials for StudioPress Themes.

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘General Discussion’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble