How To Add Facebook Like Button To Blogger Posts?
- Pergi ke Blogger Dashboard > Design > Edit HTML
- Backup Template anda dahulu
- Tanda the expand widget check box
- Cari code dibawah di dalam template anda
<data:post.body/>
Jika anda inginkan like button berada di bawah title post anda sila tambah code diatas
atau sebelum code di bawah
<data:post.body/>
Jika anda inginkan like button berada di bawah post anda sila tambah code di
bawah atau selepas code di bawah
<data:post.body/>
Facebook Like Button Styles
You can add like button in three styles :
- Vertical Count
- Horizontal Count
- Without Count
1. Vertical Count
<b:if cond='data:blog.pageType != "static_page"'> <iframe allowTransparency='true' expr:src='"http://www.facebook.com/plugins/like.php?href=" + data:post.canonicalUrl + "&send=false&layout=box_count&show_faces=false&width=55&action=like&font=arial&colorscheme=light&height=62"' frameborder='0' scrolling='no' style='border:none; overflow:hidden; width:55px; height:62px;'/> </b:if>
2. Horizontal Count
<b:if cond='data:blog.pageType != "static_page"'> <iframe allowTransparency='true' expr:src='"http://www.facebook.com/plugins/like.php?href=" + data:post.canonicalUrl + "&send=false&layout=button_count&show_faces=false&width=90&action=like&font=arial&colorscheme=light&height=21"' frameborder='0' scrolling='no' style='border:none; overflow:hidden; width:90px; height:21px;'/> </b:if>
3. Without Count
<b:if cond='data:blog.pageType != "static_page"'> <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:450px; height:35px;'/> </b:if>
Selamat mencuba
No comments:
Post a Comment