• 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 Comments box not expanding to show comment after you comment..

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 › Design Tips and Tricks › Facebook Comments box not expanding to show comment after you comment..

This topic is: resolved

Tagged: Facebook, facebook comments box

  • This topic has 6 replies, 2 voices, and was last updated 9 years, 3 months ago by Chris Moore.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • December 12, 2013 at 5:18 pm #78667
    Chris Moore
    Member

    Hello there StudioPress community!

    I have contributed a number of times here, and asked a few questions myself. And I have another question today. 🙂

    See this site that I am working on: http://projectspirituality.com/fear-losing-love/

    At the bottom of the posts I have added a Facebook Comments box using the HTML5 code from Facebook's Developer site.

    I inserted two codes using the Genesis Simple Hooks plugin.

    1.) In the "genesis_before Hook", I put this code

    <div id="fb-root"></div>
    <script>(function(d, s, id) {
      var js, fjs = d.getElementsByTagName(s)[0];
      if (d.getElementById(id)) return;
      js = d.createElement(s); js.id = id;
      js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=377347405718038";
      fjs.parentNode.insertBefore(js, fjs);
    }(document, 'script', 'facebook-jssdk'));</script>

    2.) And in the "genesis_before_comments Hook", I put this:

    <div class="fb-comments" data-href="<?php the_permalink(); ?>" data-numposts="20" data-colorscheme="light"></div>
    
    <style>.fb-comments, .fb-comments iframe[style], .fb-like-box, .fb-like-box iframe[style] {width: 100% !important;}
    .fb-comments span, .fb-comments iframe span[style], .fb-like-box span, .fb-like-box iframe span[style] {width: 100% !important;}</style>

    The <style> part is just to make the FB Comments box responsive (along with some other stuff).

    So, now on to the problem...

    When you actually enter a comment into the box (in Chrome at least), it will not expand to show your comment until you refresh the page. So it looks like it didn't work.

    How do you fix this?


    Resepctfully, Chris Moore
    Web Dev, CSS Hacks, & Biz Consulting @ MooreCreativeIdeas.com / Blogging @ ReflectOnThis.com

    http://projectspirituality.com/fear-losing-love/
    December 12, 2013 at 6:08 pm #78673
    nutsandbolts
    Member

    It just refreshed for me in Chrome for Mac - I saw my comment as soon as I posted it. Did you get this resolved?


    Andrea Whitmer, Owner/Developer, Nuts and Bolts Media
    I provide development and training services for designers • Find me on Twitter and Google+

    December 12, 2013 at 6:16 pm #78675
    Chris Moore
    Member

    Hello there!

    Hmmm... So, when you add the comment, it immediately appears for you (without refreshing the page)?

    I had the Moderation Mode set to "Let me approve each comment before it appears" before and then I set it to "Make every post public by default" after that. Not sure when you did your test! LOL...

    I have now set it to "Make every post public by default".


    Resepctfully, Chris Moore
    Web Dev, CSS Hacks, & Biz Consulting @ MooreCreativeIdeas.com / Blogging @ ReflectOnThis.com

    December 12, 2013 at 6:17 pm #78676
    nutsandbolts
    Member

    Yep! I tried it twice (it was within the last 10 minutes or so) and both showed up instantly for me.


    Andrea Whitmer, Owner/Developer, Nuts and Bolts Media
    I provide development and training services for designers • Find me on Twitter and Google+

    December 12, 2013 at 6:18 pm #78677
    Chris Moore
    Member

    Okay... That is good.

    Maybe it's because I'm an admin of the Facebook App ID that the comment is associated with?

    Can you test it one more time for me. Maybe in more than one browser.

    Mac or PC?

    THANK YOU SO MUCH! 🙂


    Resepctfully, Chris Moore
    Web Dev, CSS Hacks, & Biz Consulting @ MooreCreativeIdeas.com / Blogging @ ReflectOnThis.com

    December 12, 2013 at 6:22 pm #78678
    nutsandbolts
    Member

    Works in Firefox for Mac as well. No PCs in my house or I'd check there, too.


    Andrea Whitmer, Owner/Developer, Nuts and Bolts Media
    I provide development and training services for designers • Find me on Twitter and Google+

    December 12, 2013 at 6:29 pm #78680
    Chris Moore
    Member

    Very strange... I have Chrome Version 31.0.1650.63 (latest as of today), and comments do NOT show up when I comment, UNTIL I refresh the whole page.

    The only variable that is different between you and me is that I am an Admin of the Facebook App that is associated with the comments.

    I'm also on a Mac too, just like you.

    So............. Hmmm.

    P.S. I hid the comments we made so far. 🙂


    Resepctfully, Chris Moore
    Web Dev, CSS Hacks, & Biz Consulting @ MooreCreativeIdeas.com / Blogging @ ReflectOnThis.com

  • Author
    Posts
Viewing 7 posts - 1 through 7 (of 7 total)
  • The forum ‘Design Tips and Tricks’ 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