New Landing How can we help? Themeforest Theme Support Flexform Where to put Facebook Javascript?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Posted in: Flexform
  • #30383
    UFGrayMatter
    Member
    Post count: 28

    I’m trying to put a Facebook like box on my site, but I can’t figure out where to put the javascript. It says to put it after the <body> tag – but I can’t find the file that tag is in.

    Include the JavaScript SDK on your page once, ideally right after the opening <body> tag.

    <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";
      fjs.parentNode.insertBefore(js, fjs);
    }(document, 'script', 'facebook-jssdk'));</script>
    #30841
    laranz – SUPPORT
    Member
    Post count: 3186

    Hi,

    Sorry for a late response. Apologies.

    You can place that in header.php, for some best usage try this tutorial: http://www.ilertech.com/2011/06/add-facebook-like-button-to-wordpress-3-0-with-a-simple-shortcode/

    Let me know, what you got.

    Thanks,
    laranz.

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

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register