Standard Facebook Like Button for Blogger
Step 1: Go to Layout (Design) > Edit HTML and check “Expand Widget Templates”.
Step 2: Find <data:post.body/> and immediately after/before it (or both) add the following codes.
<b:if cond='data:blog.pageType != "static_page"'>
iframe allowTransparency='true' expr:src='"http://www.facebook.com/plugins/like.php?href=" + data:post.url + "&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>
Like Button with Box Count for Blogger
Follow the first two steps mentioned above and paste the below script:
<b:if cond='data:blog.pageType != "static_page"'>
iframe allowTransparency='true' expr:src='"http://www.facebook.com/plugins/like.php?href=" + data:post.url + "&send=false&layout=box_count&show_faces=false&width=55&action=like&font=arial&colorscheme=light&height=65"' frameborder='0' scrolling='no' style='border:none; overflow:hidden; width:55px; height:65px;'/>
</b:if>
Facebook Like Button with Button Count
Follow the first two steps and paste the below script:
<b:if cond='data:blog.pageType != "static_page"'>
iframe allowTransparency='true' expr:src='"http://www.facebook.com/plugins/like.php?href=" + data:post.url + "&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>
Example of XFBML Version
This is an example of XFBML Like button which has the Send button with an auto popup comment box. To get this you can follow the tutorial for XFML Like Button for Blogger.
Customizations
Notice the green codes, here you can make some changes to give your buttons a different styles. If you want to change the font, then find font=arial and change it to any one shown below:
font=lucida%2Bgrande
font=segoe%2Bui
font=tahoma
font=trebuchet%2Bms
font=verdana
You can also change:
* The color by changing colorscheme=light to colorscheme=dark
* The width and height (see the above snippets)
* The “Like” word to “Recommended” by changing action=like to action= recommend
* Show faces by changing show_faces=false to show_faces=true.
* And turn off Send by applying send=true to send=false.
Here is an example after applying the customizations:
Points to be noted:
* If you want some space to be added between the post body and the like button, then warp the Facebook like button codes within div. The code will be:
<b:if cond='data:blog.pageType != "static_page"'>
<div style='padding:5px;'>
(Like button code goes here...)
</div>
</b:if>
* Conditional tags are used to show these Facebook Like buttons for homepage and every other page excluding static page. If you want to show it only in post pages then replace the above used conditional tag with:
<b:if cond='data:blog.pageType == "item"'>
Like button code goes here...
</b:if>
* If you want only the Send button then follow: Add Facebook Send Button to Blogger
Notice: Here iframe start with "<". What I removed for security
If you not understand it then follow this site:
http://www.bloggerplugins.org/2010/04/facebook-like-button-for-blogger.html
Step 1: Go to Layout (Design) > Edit HTML and check “Expand Widget Templates”.
Step 2: Find <data:post.body/> and immediately after/before it (or both) add the following codes.
<b:if cond='data:blog.pageType != "static_page"'>
iframe allowTransparency='true' expr:src='"http://www.facebook.com/plugins/like.php?href=" + data:post.url + "&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>
Like Button with Box Count for Blogger
Follow the first two steps mentioned above and paste the below script:
<b:if cond='data:blog.pageType != "static_page"'>
iframe allowTransparency='true' expr:src='"http://www.facebook.com/plugins/like.php?href=" + data:post.url + "&send=false&layout=box_count&show_faces=false&width=55&action=like&font=arial&colorscheme=light&height=65"' frameborder='0' scrolling='no' style='border:none; overflow:hidden; width:55px; height:65px;'/>
</b:if>
Facebook Like Button with Button Count
Follow the first two steps and paste the below script:
<b:if cond='data:blog.pageType != "static_page"'>
iframe allowTransparency='true' expr:src='"http://www.facebook.com/plugins/like.php?href=" + data:post.url + "&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>
Example of XFBML Version
This is an example of XFBML Like button which has the Send button with an auto popup comment box. To get this you can follow the tutorial for XFML Like Button for Blogger.
Customizations
Notice the green codes, here you can make some changes to give your buttons a different styles. If you want to change the font, then find font=arial and change it to any one shown below:
font=lucida%2Bgrande
font=segoe%2Bui
font=tahoma
font=trebuchet%2Bms
font=verdana
You can also change:
* The color by changing colorscheme=light to colorscheme=dark
* The width and height (see the above snippets)
* The “Like” word to “Recommended” by changing action=like to action= recommend
* Show faces by changing show_faces=false to show_faces=true.
* And turn off Send by applying send=true to send=false.
Here is an example after applying the customizations:
Points to be noted:
* If you want some space to be added between the post body and the like button, then warp the Facebook like button codes within div. The code will be:
<b:if cond='data:blog.pageType != "static_page"'>
<div style='padding:5px;'>
(Like button code goes here...)
</div>
</b:if>
* Conditional tags are used to show these Facebook Like buttons for homepage and every other page excluding static page. If you want to show it only in post pages then replace the above used conditional tag with:
<b:if cond='data:blog.pageType == "item"'>
Like button code goes here...
</b:if>
* If you want only the Send button then follow: Add Facebook Send Button to Blogger
If you not understand it then follow this site:
http://www.bloggerplugins.org/2010/04/facebook-like-button-for-blogger.html
No comments:
Post a Comment