Senin, 10 Januari 2011

Cara Menambahkan Tombol Facebook Like ke Blog

1. Login - Layout/Tata Letak - Edit HTML

2. Cek pada Expand Template Widget

3. Cari kode berikut ini:

<data:post.body/>

4. Letakkan kode berikut setelah kode tadi:

<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>


Tombol tersebut akan tampil pada setiap post dan tidak akan tampil pada homepage, namun jika anda ingin menampilkannya di semua halaman (termasuk homepage), maka hilangkan atau hapus kode yang berwarna merah.



5. Klik Save Template.
 
 

Tidak ada komentar:

Posting Komentar