Highlights Author Comments in Blogger

10:10
Nowadays, i am not busy and i spend a lot off time to blogger.com. Previously, i wrote on How to warn your blog visitors from any type of prank. I will tell you today that how to highlight blog author comments in blogger. Blog author comments are specific and visitors must have to know that this is the comment of blog author otherwise they can,t understand your blog easily. After doing below method, your comments will look different from others.



Highlight Blog Author Comment



1. Login to Blogger >> Go to Template and click on Edit Html.
2. Check Expand Widgets Elements.
3. Copy the below code and put it before  ]]></b:skin>

.author-comments {
background: #ffffff;
border: 3px solid #666666;
padding: 5px;
}
4. Then find the following code.

<dl id='comments-block'>
<b:loop values='data:post.comments' var='comment'>
<dt class='comment-author' expr:id='"comment-" + data:comment.id'>
<b:if cond='data:comment.authorUrl'><data:comment.author/><b:else/>
<data:comment.author/>
</b:if>
said...
</dt>
<b:if cond='data:comment.author == data:post.author'>
<dd class='author-comments'>
<p><data:comment.body/></p>
</dd>
<b:else/>
<dd class='comment-body'>
<b:if cond='data:comment.isDeleted'>
<span class='deleted-comment'><data:comment.body/></span>
<b:else/>
<p><data:comment.body/></p>
</b:if>
</dd>
</b:if>
<dd class='comment-footer'>
<span class='comment-timestamp'>
<a expr:href='"#comment-" + data:
comment.id' title='comment permalink'>
<data:comment.timestamp/>
<b:include data='comment' name='commentDeleteIcon'/>
</span>
</dd>
</b:loop>
</dl>
5. You have to add blue code at the same position and your position must be correct.
6. Now you can see changes on your comments in blogger.
                                  Please give your feedback for this beautiful tip.

Share this :

Artikel Terkait

0 Komentar

Penulisan markup di komentar
  • Silakan tinggalkan komentar sesuai topik. Komentar yang menyertakan link aktif, iklan, atau sejenisnya akan dihapus.
  • Untuk menyisipkan kode gunakan <i rel="code"> kode yang akan disisipkan </i>
  • Untuk menyisipkan kode panjang gunakan <i rel="pre"> kode yang akan disisipkan </i>
  • Untuk menyisipkan quote gunakan <i rel="quote"> catatan anda </i>
  • Untuk menyisipkan gambar gunakan <i rel="image"> URL gambar </i>
  • Untuk menyisipkan video gunakan [iframe] URL embed video [/iframe]
  • Kemudian parse kode tersebut pada kotak di bawah ini
  • © 2015 Simple SEO ✔