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

2 min read
0
0
94

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); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
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="http://atechguide.com/" 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  http://atechguide.com/ 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

Load More Related Articles
Load More By Krishna Veni
Load More In Social Networking

Leave a Reply

Your email address will not be published. Required fields are marked *

Check Also

10 Websites for Students to Earn Money Online

Online earning is one of the most popular trends these days to earn money. Basically, the …