Advertisement

TUTORIAL: Cara Pasang Fungsi “Reply To Comment” Pada Blog

Assalamualaikum dan salam sejahtera...

Hari ni Cik TK nak kongsi cara letak fungsi "Reply To Comment" pada kotak komen.


1) Dashboard > Template > Edit HTML


2) Ctrl + F (tekan serentak pada keyboard), cari kod:


<data:commentpostedbymsg>
atau 
<dd class='comment-footer'>


3) Copy kod ini, jangan lupa masukkan blogID korang:


<span class='comment-reply'><a expr:href='&quot;https://www.blogger.com/comment.g?blogID=MASUKKAN  BLOG ID KAT SINI&amp;postID=&quot; + data:post.id + &quot;&amp;isPopup=true&amp;postBody=%40%3C%61%20%68%72%65%66%3D%22%23&quot; + data:comment.anchorName + &quot;%22%3E&quot; + data:comment.author + &quot;%3C%2F%61%3E#form&quot;' onclick='javascript:window.open(this.href, &quot;bloggerPopup&quot;, &quot;toolbar=0,location=0,statusbar=1,menubar=0,scrollbars=yes,width=400,height=450&quot;); return false;'>[Reply to comment]</a></span>


Oh ya! BlogID tu copy dari:




4) Paste di bawah kod <data:commentpostedbymsg> atau <dd class='comment-footer'>

  
 Sebagai contoh:

<dd class='comment-footer'>
<span class='comment-reply'><a expr:href='&quot;https://www.blogger.com/comment.g?blogID=NOMBOR BLOG ID&amp;postID=&quot; + data:post.id + &quot;&amp;isPopup=true&amp;postBody=%40%3C%61%20%68%72%65%66%3D%22%23&quot; + data:comment.anchorName + &quot;%22%3E&quot; + data:comment.author + &quot;%3C%2F%61%3E#form&quot;' onclick='javascript:window.open(this.href, &quot;bloggerPopup&quot;, &quot;toolbar=0,location=0,statusbar=1,menubar=0,scrollbars=yes,width=400,height=450&quot;); return false;'>[Reply to comment]</a></span>


5) Preview dulu, kalau tiada error boleh Save Template. Selesai!


Selamat mencuba!!!




Catat Ulasan

0 Ulasan