how to add like button in every post on blogger

on July 30, 2014
Facebook has 1 billion active users so you dont want to miss a like button on every post , Sure you get facebook options with Disqus and other gadgets but they dont provide ' Like Button ' . So here is a trick to add facebook like button in your blog on every post .

1 - Login your blogger account
2- Click Template on left side
3-  Find <data:post.body/> in your HTML Code .. If you have 2  <data:post.body/> so choose second one

4- Paste this code 
<b:if cond='data:blog.pageType != "static_page"'> <iframe allowTransparency='true' expr:src='"http://www.facebook.com/plugins/like.php?href=" + data:post.url + "&amp;send=false&amp;layout=standard&amp;show_faces=false&amp;width=450&amp;action=like&amp;font=arial&amp;colorscheme=light&amp;height=35"' frameborder='0' scrolling='no' style='border:none; overflow:hidden; width:450px; height:35px;'/> </b:if> 
---- before  <data:post.body/>
5- Click Save Template

Congrats you have successfully applied Like Button in your existing blogger post and in your all future posts .

Please comment if this helped you . 

0 comments:

Post a Comment