Few days ago, facebook surprised us by launching a lot of social plugins, one of them, actually the most popular one yet is the famous like button, In this tutorial you’ll learn how to add it to your blogger blog and you’ll learn how to customize. Change the verb, like or recommend, change it’s color and change it’s font.
STEP 1:
Add the button code it to your template script.
- Log into your blogger account, then go to Design >> Edit Html.
- Backup your Templates (Don't know click here)
- Then check on Expand Widget Templates box.
- Find the Code below and paste the Facebook like button script after it.
<div class='post-header-line-1'/>
- If you didn’t find the code above in your template, Then try to find the following and paste the Facebook like button script before it.
<data:post.body/>
- Facebook like button script.
<b:if cond='data:blog.pageType == "item"'> <iframe allowTransparency='true' expr:src='"http://www.facebook.com/plugins/like.php?href=" + data:post.url + "&layout=standard&show_faces=false&width=100&action=like&font=arial&colorscheme=light"' frameborder='0' scrolling='no' style='border:none; overflow:hidden; width:450px; height:40px;'/> </b:if>
- Create your own Facebook like button script Click Here.
like this part controls the verb that appear on your button, keep it as you see or change it to recommend if you want.
Arial this part controls the font type, keep it or change it to one of the following:
lucida+grande
segoe+ui
tahoma
trebuchet+ms
verdana
Light this part controls your button color theme, and you have three options
Light
Evil
Dark
Update, How to make it appear on your home page.
<b:if cond='data:blog.pageType == "item"'>
UPDATE</b:if>
if you want facebook like button individual blog post. follow below instructions.
Paste below script at button of
<b:includable id='post' var='post'>. this line.
<iframe
allowTransparency='true'
frameborder='0'
scrolling='no'
expr:src='"http://www.facebook.com/plugins/like.php?href="
+ data:post.url
+ "&layout=standard&show_faces=true&"
+ "width=530&height=60&action=like&"
+ "colorscheme=light"'
style='border:none; overflow:hidden; width:530px; height:60px'/>
In case you have issues, here is the version with all the clarifying formatting removed and no line breaks:
<iframe allowTransparency='true' expr:src='"http://www.facebook.com/plugins/like.php?href=" + data:post.url + "&layout=standard&show_faces=true&width=530&height=60&action=like&colorscheme=light"' frameborder='0' scrolling='no' style='border:none; overflow:hidden; width:530px; height:60px'/>
Need More Help Just Ask In The Comments.
16 comments:
It's probably staring me in the face, but is there a way to get the 'Like' button to appear at the bottom of posts? I've followed the above instructions but it makes the button appear at the top of posts, and I'd prefer it to be at the foot. Thank you.
yes there is way @ matthew. paste Facebook script after/below this code
<data:post.body/>c
That's worked a treat, thank you!
It looks so awful that I've reverted to default widget template and removed the Facebook Like button entirely. I would like to restore it, however, with your help. Thank you.
See update brother.
Thanks!
i want like button with every post that i post..but which code should i paste?blur me a little bit..
I am having the same issue as Autumn Leaf where the FB message does not link back to the blog. Thanks for any advice.
THANK YOU!!!!!!!! I spent about 3 hours (much time wasted on an extremely temperamental wireless connection... nevertheless!) trying to get the like button on individual posts.
THANK YOU!!!
Okay, what did I do wrong? I followed every step and the only place the like button shows up is in the Blog Archives. I want them to show up on individual post. Help!
Thank You
http://MGHairDesign.blogspot.com
I was able to link the facebook button to individual posts, but it appears just before the post, while I'd like to add it at the bottom of each post (after date, labels, etc..)
Is there any way I can do that?
Thanks for your help!
Yes, I did it at the beginning of each post. Is it not better to put it at the end? any experience?
Very helpful! Thanks!!
Very helpful! Many thanks!
HELP!!!!!!!!!!!!!!!!!! No one can help me!! I have being trying for days to add my FB like button for to the sidebar and I get a black rectangle!!! What is going on! I have tried different codes and everything I can think of. Please any help would be great...........
Thkx bro................
Post a Comment