Merubah tampilan form Komentar Blog

Form Komentar yang akan dibuat kali ini cukup menarik, untuk blog Karena form komentar ini sudah diedit dengan baik dan sempurna, dengan berbagai fitur seperti. dibawah ini
  • Style Elegan dan Simpel
  • Image Avatar
  • Tombol Reply
  • Styel Reply WP
  • Highlight Blog Owners
  • Pesan Ucapan "Terimakasi"
  • Emoticon Onion (Kucing)
blog ini juga memakai form Komentar ini? 
  1. Login di Blogger.com, Pergi ke Template > Edit HTML (Expand Template Widget)
  2. Tekan Ctrl+F cari ]]>, Letakan kode berikut di atas ]]> 

  1. /*
  2. Comments
  3. ----------------------------------------------- */
  4. #comments h4 {
  5. font-size: 18px;
  6. font-weight: normal;
  7. margin: 20px 0;
  8. }
  9. .cm_wrap {
  10. clear: both;
  11. margin-bottom: 10px;
  12. float: right;
  13. width: 100%;
  14. }
  15. .cm_head {
  16. margin: 0;
  17. width:60px;
  18. float: left;
  19. }
  20. .cm_avatar {
  21. margin: 0;
  22. vertical-align: middle;
  23. border: 1px solid #DDD;
  24. padding: 3px;
  25. background:
  26. url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwO_xhsGbc2DkwFxCxUpnMyKeycCRVIKSOWoO9uslKeBsGHu4slckv25iLmd0dD7selttvCUVNA9B_uUU1y9AYv42dl_5JMXTQsuyy3BQe0xYpBahyphenhyphen1F668YLD6gZfCq-ZSLrX3u3wu3s/s1600/takdikenal.jpg)
  27. center no-repeat;
  28. width: 35px;
  29. height: 35px;
  30. }
  31. .cm_avatar_a {
  32. margin: 0;
  33. vertical-align: middle;
  34. border: 1px solid #DDD;
  35. padding: 3px;
  36. background:#c6e5f7;
  37. background-position:center;
  38. background-repeat:no-repeat;
  39. width: 35px;
  40. height: 35px;
  41. }
  42. .cm_reply {
  43. padding-top: 5px;
  44. }
  45. .cm_reply a {
  46. display: inline-block;
  47. margin: 0;
  48. padding: 1px 6px;
  49. border: 1px solid #C4C4C4;
  50. border-top-color: #E4E4E4;
  51. border-left-color: #E4E4E4;
  52. color: #424242 !important;
  53. text-align: center;
  54. text-shadow: 0 -1px 0 white;
  55. text-decoration: none;
  56. -webkit-border-radius: 2px;
  57. -moz-border-radius: 2px;
  58. border-radius: 2px;
  59. background: #EDEDED;
  60. background: -webkit-gradient( linear, left top, left bottom,
  61. color-stop(.2, white), color-stop(1, #E5E5E5) );
  62. background: -moz-linear-gradient( center top, white 20%, #E5E5E5 100%
  63. );
  64. font: 11px/18px sans-serif;
  65. }
  66. .cm_reply a:hover {
  67. text-decoration: none !important;;
  68. background: #ccc;;
  69. background: -webkit-gradient(linear,left top,left bottom,color-stop(.2,
  70. #eeeeee),color-stop(1, #cccccc));;
  71. background: -moz-linear-gradient(center top,#eeeeee 20%,#cccccc 100%);;
  72. }
  73. .cm_entry {
  74. padding: 16px;
  75. background: #fcfcfc;
  76. border: 1px solid #E4E4E4;
  77. overflow: hidden;
  78. }
  79. .cm_arrow {
  80. display: block;
  81. width: 9px;
  82. height: 18px;
  83. background:
  84. url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSvol57Z4etpDP3iApmme67_zwYuuX5s-SGS3S8vCFXZ0DZDyiqiEmWOeZs7beTCVZZ_EkJz4i3_g3zWMurD7fnNl7-bYDH-76UAbGaqq8JNCqTtD0hE75l635t_7o_E4KlV6KmevmWsg/s1600/comment-arrow.gif)
  85. no-repeat;
  86. position: absolute;
  87. margin-left: -25px;
  88. }
  89. .cm_info {
  90. margin-bottom: 5px;
  91. border: thin solid #E6E6E6;
  92. background-color: #F4F4F4;
  93. padding: 5px;
  94. }
  95. .cm_info_a {
  96. margin-bottom: 5px;
  97. border: thin solid #E6E6E6;
  98. background-color: #dff0fa;
  99. padding: 5px;
  100. }
  101. .cm_name {
  102. font-size: 14px;
  103. color: #666666 !important;
  104. text-decoration:none;
  105. float: left;
  106. }
  107. .cm_name_a {
  108. font-family:"Comic Sans MS", cursive;
  109. font-size: 14px;
  110. color: #666666 !important;
  111. text-decoration:none;
  112. font-weight: bold;
  113. float: left;
  114. }
  115. .cm_date {
  116. font-size: 10px;
  117. color: #999;
  118. text-decoration:none;
  119. float: right;
  120. }
  121. .cm_date_a {
  122. font-family:"Comic Sans MS", cursive;
  123. font-size: 10px;
  124. color: #2D5E7B;
  125. text-decoration:none;
  126. float: right;
  127. padding-top:5px;
  128. }
  129. .cm_entry p {
  130. padding: 5px;
  131. clear: both;
  132. border: thin solid #E6E6E6;
  133. background-color: #ffffff;
  134. font-size: 13px;
  135. color: #333;
  136. word-wrap:break-word;
  137. }
  138. .cm_entry_a p {
  139. padding: 5px;
  140. clear: both;
  141. border: thin solid #E6E6E6;
  142. background-color:  #ffffff;
  143. font-size: 13px;
  144. color: #333;
  145. word-wrap:break-word;
  146. }
  147. .cm_pagenavi {
  148. font-size: 10px;
  149. text-transform: uppercase;
  150. color: #666;
  151. text-shadow: 1px 1px white;
  152. font-weight: bold;
  153. }
  154. .cm_pagenavi a {
  155. color: #666;
  156. text-decoration: none;
  157. padding:10px;
  158. }
  159. .cm_pagenavi a:hover {
  160. text-decoration: underline
  161. }
  162. .cm_pagenavi span {
  163. color: #888;
  164. background: white;
  165. padding: 4px;
  166. border: 1px solid #E0E0E0;
  167. }
  168. /* Comment Admin  */
  169. .comment-body-author {
  170. font-family:"Comic Sans MS", cursive;
  171. font-weight: 300;
  172. }
  • Untuk menganti background agar sesuai dengan template yang anda gunakan cari saja kode CSS .cm_entry
  • Berikutnya cari , Masukan kode berikut di atas kode 
<b:if cond='data:blog.pageType == &quot;item&quot;'> <script src='http://donor-ilmu.googlecode.com/files/comment.js' type='text/javascript'/> <script src='http://donor-ilmu.googlecode.com/files/emoticon_wp2.js' type='text/javascript'/> </b:if>
  1. Selanjutnya cari kode


    Kalau suda ketemu letakan kode berikut tepat dibawah kode yang anda temukan. 
    • <div
    • style='width:550px;text-align: center;border: 1px solid #ccc;padding:
    • 2px 2px;margin-top:
    • 15px;font-style:bold;color:#000;font-weight:normal;font-size:10px;'>
    • <b><img border='0' height='30'
    • src='http://www.cute-factor.com/images/smilies/onion/70bff581.gif'
    • width='30'/>:)) <img border='0' height='30'
    • src='http://www.cute-factor.com/images/smilies/onion/069.gif'
    • width='30'/>;))
    • <img border='0' height='30'
    • src='http://www.cute-factor.com/images/smilies/onion/th_104_.gif'
    • width='30'/>;;) <img border='0' height='30'
    • src='http://www.cute-factor.com/images/smilies/onion/th_113_.gif'
    • width='30'/>:D <img border='0' height='30'
    • src='http://www.cute-factor.com/images/smilies/onion/4412144b.gif'
    • width='30'/>;) <img border='0' height='30'
    • src='http://www.cute-factor.com/images/smilies/onion/th_101_.gif'
    • width='30'/>:p <img border='0' height='30'
    • src='http://www.cute-factor.com/images/smilies/onion/33c4b951.gif'
    • width='30'/>:(( <img border='0' height='30'
    • src='http://www.cute-factor.com/images/smilies/onion/th_059_.gif'
    • width='30'/>:) <img border='0' height='30'
    • src='http://www.cute-factor.com/images/smilies/onion/875328cc.gif'
    • width='30'/>:( <img border='0' height='30'
    • src='http://www.cute-factor.com/images/smilies/onion/6f428754.gif'
    • width='30'/>:X <img border='0' height='30'
    • src='http://www.cute-factor.com/images/smilies/onion/th_087_.gif'
    • width='30'/>=((
    • <img border='0' height='30'
    • src='http://www.cute-factor.com/images/smilies/onion/e111de78.gif'
    • width='30'/>:-o <img border='0' height='30'
    • src='http://www.cute-factor.com/images/smilies/onion/efb50fe2.gif'
    • width='30'/>:-/ <img border='0' height='30'
    • src='http://www.cute-factor.com/images/smilies/onion/th_106_.gif'
    • width='30'/>:-* <img border='0' height='30'
    • src='http://www.cute-factor.com/images/smilies/onion/023.gif'
    • width='30'/>:| <img border='0' height='30'
    • src='http://www.cute-factor.com/images/smilies/onion/5c745924.gif'
    • width='30'/>8-} <img border='0' height='30'
    • src='http://www.cute-factor.com/images/smilies/onion/037.gif'
    • width='31'/>:)] <img border='0' height='30'
    • src='http://www.cute-factor.com/images/smilies/onion/042.gif'
    • width='30'/>~x( <img border='0' height='30'
    • src='http://www.cute-factor.com/images/smilies/onion/87a4e689.gif'
    • width='30'/>:-t <img border='0' height='30'
    • src='http://www.cute-factor.com/images/smilies/onion/047352f3.gif'
    • width='30'/>b-(
    • <img border='0' height='30'
    • src='http://www.cute-factor.com/images/smilies/onion/th_116_.gif'
    • width='30'/>:-L <img border='0' height='30'
    • src='http://www.cute-factor.com/images/smilies/onion/4d6161fd.gif'
    • width='30'/>x( <img border='0' height='30'
    • src='http://www.cute-factor.com/images/smilies/onion/d5f02ecd.gif'
    • width='30'/>:-p <img border='0' height='30'
    • src='http://www.cute-factor.com/images/smilies/onion/071.gif'
    • width='30'/>=)) </b> </div>
    1. Terakhir cari , ganti kode yang berada diantara dua kode dari pembuka sampai penutup
    <b:includable id='comments' var='post'> Kode yang harus di ganti </b:includable>

    1. Ganti kode dia antara b:includable dengan kode di bawah ini
      <div
        class='comments' id='comments'> <a name='comments'/> <b:if
          cond='data:post.allowComments'> <h4> <b:if
            cond='data:post.numComments &gt; 0'>
              <a href='#comment-form' style='float:right; margin-right:5px;'>+
                <data:commentLabelPlural/> +</a> <b:if
                  cond='data:post.numComments == 1'> <span
                    id='cm_total'>1</span> <data:commentLabelPlural/>
                      <b:else/> <span
                        id='cm_total'><data:post.numComments/></span>
                          <data:commentLabelPlural/> </b:if> </b:if>
                            </h4> <div id='cm_reply_css'/> <div class='cm_pagenavi'
                              id='cm_page'/> <div id='cm_block'> <b:loop
                                values='data:post.comments' var='comment'> <b:if
                                  cond='data:comment.isDeleted'> <b:else/> <div
                                    expr:id='data:comment.anchorName'> <div class='cm_wrap'> <a
                                      expr:name='data:comment.anchorName'/> <div class='cm_head'>
                                        <div class='cm_avatar'> <b:if
                                          cond='data:blog.enabledCommentProfileImages'>
                                            <data:comment.authorAvatarImage/> </b:if> </div>
                                              <div class='cm_reply'> <a
                                                expr:href='&quot;https://www.blogger.com/comment.g?blogID=0000000000000000000&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=600,height=500&quot;);
                                                                return false;'>Reply</a> </div> </div> <b:if
                                                                  cond='data:comment.author == data:post.author'> <dd
                                                                    class='cm_entry'> <span class='cm_arrow'/> <div
                                                                      class='cm_info_a'> <div class='cm_name_a'> <b:if
                                                                        cond='data:comment.authorUrl'> <img height='20px'
                                                                          src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjaf5eSe6up0qvhbwRqxeut1X0EB_KUrMFr00NyE7ZtL5W1rI-Df_Vx1wR_s1_TzL_P9oC4UHMPd6RXulQqHAY1NDenwyA9chyphenhyphenwcezcSRvKsW9XEMCNql-fwfQTiBXFXb_e-PNP_b2aSUw/s1600/adminstar.png'
                                                                            title='Admin' width='20px'/> <a
                                                                              expr:href='data:comment.authorUrl' rel='nofollow' target='_blank'>
                                                                                <data:comment.author/> </a> <b:else/>
                                                                                  <b><data:comment.author/></b> </b:if>
                                                                                    </div> <div class='cm_date_a'>
                                                                                      <data:comment.timestamp/> <b:include data='comment'
                                                                                        name='commentDeleteIcon'/> </div> <div class='clear'/>
                                                                                          </div> <div class='comment-body-author'>
                                                                                            <p><data:comment.body/></p> </div> </dd>
                                                                                              <b:else/> <dd class='cm_entry'> <span
                                                                                                class='cm_arrow'/> <div class='cm_info'> <div
                                                                                                  class='cm_name'> <b:if cond='data:comment.authorUrl'> <a
                                                                                                    expr:href='data:comment.authorUrl' rel='nofollow' target='_blank'>
                                                                                                      <data:comment.author/> </a> <b:else/>
                                                                                                        <b><data:comment.author/></b> </b:if>
                                                                                                          </div> <div class='cm_date'>
                                                                                                            <data:comment.timestamp/> <b:include data='comment'
                                                                                                              name='commentDeleteIcon'/> </div> <div class='clear'/>
                                                                                                                </div> <p><data:comment.body/></p> <span
                                                                                                                  style='text-align:center; font-size:9px;'>Terimakasih
                                                                                                                    <b><data:comment.author/></b> atas Komentarnya di
                                                                                                                      <b><data:post.title/></b></span> </dd>
                                                                                                                        </b:if> </div> </div> </b:if> </b:loop>
                                                                                                                          </div> <div class='cm_pagenavi' id='cm_page_copy'/>
                                                                                                                            <b:if cond='data:post.embedCommentForm'> <b:if
                                                                                                                              cond='data:post.allowNewComments'> <b:include data='post'
                                                                                                                                name='comment-form'/> <b:else/>
                                                                                                                                  <data:post.noNewCommentsText/> </b:if> <b:else/>
                                                                                                                                    <b:if cond='data:post.allowComments'> <a
                                                                                                                                      expr:href='data:post.addCommentUrl'
                                                                                                                                        expr:onclick='data:post.addCommentOnclick'><data:postCommentMsg/></a>

                                                                                                                                            </b:if> </b:if> </b:if> </div>
                                                                                                                                            1. Dalam kode di ini anda perlu menganti Nomor 0000000000000000000 dengan ID Blog anda.
                                                                                                                                            2. Langkah terakhir simpan template, Klik Save Template.                                                                                                             sumber  donorilmuDotCom

                                                                                                                                            You may like these posts