Security
|Thachthat.biz|
today : | at : | safemode : ON
> / home / root /public_html / it.thachthat.biz /
Name User Perms Com Modified Label

nút like bài viết cho blogger Unknown rwxr-xr-x 0 23:18

Filename nút like bài viết cho blogger
Permission rw-r--r--
Author Unknown
Date and Time 23:18
Label
Action
Nếu ai đã sử dụng facebook thì chắc hẳn cũng biết tác dụng của nút Like. Vậy khi cần chia sẻ, giới thiệu cho bạn bè trên facebook thì ta phải làm gì? đa số các trang web/blog đều có các nút chia sẻ, like.
Cách làm như sau:
Đăng nhập vào tài khoản blogger của bạn, sau đó chọn  Layout >> Edit Html. 
(hay Bố cục>> Chỉnh sửa HTML) chọn vào Expand Widget Templates (mở rộng tiện ích) tìm đoạn code sau:
<div class='post-header-line-1'/>
Nếu bạn không tìm thấy dòng như trên thì có thể tìm dòng thay thế sau: 
<data:post.body/>
và dán vào trước dòng này đoạn co sau:
<b:if cond='data:blog.pageType == &quot;item&quot;'>
<iframe allowTransparency='true' expr:src='&quot;http://www.facebook.com/plugins/like.php?href=&quot; + data:post.url + &quot;&amp;layout=standard&amp;show_faces=false&amp;width=100&amp;action=like&amp;font=arial&amp;colorscheme=light&quot;' frameborder='0' scrolling='no' style='border:none; overflow:hidden; width:450px; height:40px;'/>
</b:if>

click Save Template  
vậy là xong.

0 nhận xét:

 

Jayalah Indonesiaku © 2014 IT Thạch Thất
VB (Vio b374k) Template design by Thachthat.biz