
Facebook Like button for Blogger
Step 1: Log in to Blogger and from the dashboard go to blog’s Template tab. Next click “Edit HTML” and check “Expand Widget Templates”.Step 2: Find
<data:post.body/>
and immediately after or before it (or both if you want to have the
Facebook Like button on top and also at the bottom of the Blogger posts)
add the below code after selecting the options you like to have.Button Options
Layout:Verb:
Color:
Font:
: px
Float:
Show for:
Preview and code
Step 3: Save your template.<b:if cond='data:blog.pageType != "static_page"'><div style='float: none;'> <iframe allowTransparency='true' expr:src='"http://www.facebook.com/plugins/like.php?href=" + data:post.canonicalUrl + "&send=false&layout=standard
&show_faces=false&width=450
&action=like
&font=arial
&colorscheme=light
&height=35
"' frameborder='0' scrolling='no' style='border:none; overflow:hidden; width:450
px; height:35
px;'/> </div></b:if>
Attributions:
layout
– There are three sizes avilable, options are ‘standard’, ‘button_count’ and ‘box_count’.action
– The text to display, that is, ‘like’ or ‘recommend’.colorscheme
– The colour of the button.font
– Font you like to use.width
– I have enabled this option for users who want to change the width of the Like button. If you don’t know the default widths as per Facebook standards then don’t change anything here.show_faces
– Option to show profile pictures of your Facebook friends (only) who have liked your post. I have set it to ‘false’. If you want then you can change it to ‘true’ but you also have to change theheight
accordingly.send
– This option is not available in Iframe version.
0 comments:
Post a Comment