Quantcast
Channel: Free Web Hosting Community Forum - Host1Free.com
Viewing all articles
Browse latest Browse all 3352

How to Add a Facebook “Like” Button to WordPress?

$
0
0
Now, it is easier than ever to add the Facebook famous “Like”/”Recommend” to your posts and increase their popularity.
First, you need to login as administrator to the WordPress admin panel.
Then go to Appearance -> Editor.

Then place the following code wherever you want the like button to appear:

Code:

<div id=”fb-root”></div>
&ltscript>(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></code>
<div class=”fb-like”  data-href=”http://developers.facebook.com/docs/reference/plugins/like”  data-send=”true” data-width=”450″ data-show-faces=”true”>


Viewing all articles
Browse latest Browse all 3352

Trending Articles