WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. peterkroghpoto
    Member
    Posted 1 year 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:

    http://thedambook.com/ngs-seminar/

    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);
    }());
    </script>
    <div id="page" class="hfeed site">
    <header id="masthead" class="site-header" role="banner">
    <hgroup>

    http://wordpress.org/plugins/facebook-comments-plugin/

  2. Alex Moss
    Member
    Plugin Author

    Posted 11 months 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

About this Topic

Tags

No tags yet.