WordPress.org

Support

Support » How-To and Troubleshooting » Where is to add Facebook Like Button code and help to add remain FB code

Where is to add Facebook Like Button code and help to add remain FB code

  • PatRuppel
    Member

    @patruppel

    I’ve checked in the forums with same question and have tried what was recommended but I still can’t find <body>. I’ve tried going into my Header.php, Footer.php and Page.php but I still can’t locate <body>.

    The first step in the XFBML configuring of my FB Like button says: (but I can’t find <body>)

    1.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>

    The second FB Like button configuration step is:

    2.Add an XML namespace to the <html> tag of your document. This is necessary for XFBML to work in earlier versions of Internet Explorer.
    <html xmlns:fb=”http://ogp.me/ns/fb#”>

    And the last step is:

    3.Place the code for your plugin wherever you want the plugin to appear on your page.

    <fb:like href="http://plaintalkandordinarywisdom.com" send="true"
    width="450" show_faces="true" font="arial"></fb:like>

    Can you please give me directions on where to add these codes, as I’m challenged when it comes to the techy part in code and don’t want to mess it up when completing this configuration process.

    Thank you [email removed]

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Where is to add Facebook Like Button code and help to add remain FB code’ is closed to new replies.