Support » Plugin: Facebook Comments » Some of the js code shows on the top of page

  • Resolved peterkroghpoto


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

    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); = id;
    js.src = “// 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”>

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Some of the js code shows on the top of page’ is closed to new replies.