Now You Can Easily Add Facebook Like Button On Your Blogger Blog. In This Post, I
Will Show You The Way To Install The Facebook Like Button On Your Blog.
Follow These Procedures:
Will Show You The Way To Install The Facebook Like Button On Your Blog.
Follow These Procedures:
- Go to Dashboard > Design > Edit HTML.
- Back up your template.
- Tick the Expand Widget Templates check box on top right of the HTML window.
- Find the following code in your HTML, this is the code for your post content:
<data:post.body/>
- Paste the Facebook button code immediately below (after) it:
<!-- Facebook Like button Start --> <b:if cond='data:blog.pageType != "static_page"'> <div style='float:left;padding:5px 5px 5px 0;'> <iframe allowTransparency='true' expr:src='"http://www.facebook.com/plugins/like.php?href=" + data:post.url + "&layout=standard&show_faces=false&width=450&action=like&font=verdana&colorscheme=light&height=35"' frameborder='0' scrolling='no' style='border:none; overflow:hidden; width:450px; height:35px;'/> </div> </b:if> <!-- Facebook Like button End -->
- Configure button Choose the type of button by changing the value of query parameters in line 4.
-
Like button type Query Value layout standard
layout button_count
colorscheme dark
action recommend
- Button repositioning
The steps above positioned the button on bottom left of each post. You can change the position if you wish:- Position it on top of post
Place the button code before<data:post.body/>
, instead of after. - Position it on the right
Change thefloat
in line 3 fromleft
toright
. - To also display the button in static pages, remove the conditional tag -code line 1 and 6.
- Position it on top of post
- Preview, you should see the button appear in each post.
- Click Save if you like what you see.
- Done!