Let's see how we can easily add Facebook like button:
Step 1: Editing out blog template as HTML:
- press on: "Design" on your blog main menu.
- Then press on "Edit HTML" on the upper sub menu.
- Check "Expand Widget Templates" checkbox.
Search for the String:
Facebook Like button should be placed before this code.<data:post.body/>
Step 3: Put the following code in your blog template:
<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>
After you save your template, go to one of your posts. You could see that a Facebook Like button was added right under the name of your post.
No comments:
Post a Comment