• Resolved Jan444

    (@ign2009)


    Hi,

    I just added this script on the Script Blocking box / Header area:

    start testing
    
    <script type="text/javascript">(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/sdk.js#xfbml=1&version=v2.4";
      fjs.parentNode.insertBefore(js, fjs);
    }(document, 'script', 'facebook-jssdk'));</script>
    
    end testing

    I can see the start testing and end testing bits (plain text) but the script itself won’t appear!

    What can be wrong? Thanks,

Viewing 2 replies - 1 through 2 (of 2 total)
  • Ambyomoron

    (@josiah-s-carberry)

    I tried adding your script (both with and without the ‘start testing’/’end testing’) and it does indeed appear in the source code for the pages.

    Thread Starter Jan444

    (@ign2009)

    Hi Josuah, thanks for your help!

    Your post made me think: the problem is I was compressing all the javascript that’s in the <head> area using another plugin.

    Mistery solved!
    Cheers,

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Script blocking box for the Header won’t ouput scripts’ is closed to new replies.