How to add facebook Like button to your website with two steps

How to get Facebook Like button with two steps:

Facebook is good place to get traffic and publish your site to so many members through this amazing social networking site. Now Facebook beats Google Alexa Page rank also.We will see how to get Facebook like button to your WordPress blog.

Facebook like Button for your WordPress:

To Add Facebook like to your wordpress Blog, just add your code to you blog with some changes.

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); = id;
js.src = "//";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>

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

<div data-href="" data-send="true" data-layout="button_count" data-width="450" data-show-faces="false" data-font="verdana"></div>

Code Explanation:
data-send =”true” – Displays Send Button
data-href = URL to like( Replace the URL with your blog/ website URL)
data-layout=”button_count” –Displays the Like button count
data-font = Change with your font

Preview with Facebook Send Button

Preview without Facebook Send Button

Please share your comment about this tutorial to add facebook like button in your blog or wordpress

Add Comment