[Kontak Komentar Facebook] Cara memasang kolom komentar facebook di Blogger
Cara memasang kotak/kolom komentar di facebook, seperti gambar di atas ini.
Langkah pertama, Masuk ke Dashboard - Template - Edit HTML
Langkah kedua, cari kode <div class='comments' id='comments'>
dengan cara CTRL + F copykan kode tersebut di kolom control find (CTRL + F) , setelah ketemu kodenya, kemudian copy kan kode dibawah ini, :
<div class='comments-tab' id='fb-comments' onclick='javascript:commentToggle("#fb-comments");' title='Comments made with Facebook'><img class='comments-tab-icon' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj35raTGjjdGgoANmD5v_9B89aQqCNIwyOt0IUhZxKE0X2L_a_Ca3tTij_w3Qf9gYiwo1oabkBcKv9xFN5wjpE3thTH9GLTVB8r18Q54KtdHjvPfJC-Lq0fvqIzRKRr76ZVn0zI6ZeyVC6u/s1600/Logo+Facebook+1.jpg'/><fb:comments-count expr:href='data:post.url'/> Comments</div><div class='comments-tab inactive-select-tab' id='blogger-comments' onclick='javascript:commentToggle("#blogger-comments");' title='Comments from Blogger'><img class='comments-tab-icon' src='http://www.blogger.com/img/icon_logo32.gif'/> <data:post.numComments/> Comments</div><div class='clear'/></div><div class='comments-page' id='fb-comments-page'><b:if cond='data:blog.pageType == "item"'><div id='fb-root'/><fb:comments expr:href='data:post.url' num_posts='2' width='600'/></b:if></div><div class='comments comments-page' id='blogger-comments-page'>
<script src='http://connect.facebook.net/en_US/all.js#xfbml=1'/><script src='http://code.jquery.com/jquery-latest.js'/><meta content='ID FB' property='fb:admins'/><script type='text/javascript'>function commentToggle(selectTab) {$(".comments-tab").addClass("inactive-select-tab");$(selectTab).removeClass("inactive-select-tab");$(".comments-page").hide();$(selectTab + "-page").show();}</script><style>.comments-page { background-color: #f2f2f2;}#blogger-comments-page { padding: 0px 5px; display: none;}.comments-tab { float: left; padding: 5px; margin-right: 3px; cursor: pointer; background-color: #f2f2f2;}.comments-tab-icon { height: 14px; width: auto; margin-right: 3px;}.comments-tab:hover { background-color: #eeeeee;}.inactive-select-tab { background-color: #d1d1d1;}</style>
Note :
600 : untuk mengganti ukuran lebar kolom
ID FB : ganti dengan nomor ID fb kamu, cari disini http://findmyfbid.com/
Langkah Ketiga, Simpan dan Selesai.
voa
ReplyDelete