Facebook Comments
[resolved] Some of the js code shows on the top of page (2 posts)

  1. peterkroghpoto
    Posted 2 years ago #

    I copied and pasted the code from the support section of the site into my header.php. As you can see from the link:


    there is a little code sitting on top of the page. As you can see, it's the last bit of the embed code that is showing as text. I tried messing around with it, but I could not figure out how to hide it and not break it. Here is what the relevant code looks like on the page:

    <body <?php body_class(); ?>>
    <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=YES I PUT MY APP IN HERE";
    fjs.parentNode.insertBefore(js, fjs);
    }(document, 'script', 'facebook-jssdk'));</script>ent.getElementById('fb-root').appendChild(e);
    <div id="page" class="hfeed site">
    <header id="masthead" class="site-header" role="banner">


  2. Alex Moss
    Posted 2 years ago #

    This seems like a theme or plugin conflict. This has not been noted by any other user.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Facebook Comments
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.