Friday 3 August 2012

How To Add a Reply Button To Blogger Comments

You would have seen a reply button to each particular comment in wordpress blogs, and we also want blogger to add this feature in blogger comments and make blogger comments more useful.But they busy in adding more blogger features to blogger blogs to make it more easy and useful.As its not possible to make hack to have this reply button in blogger comments as wordpress blogs, but we have come with small hack like this to make reply button which would make look blogger comment system look better than before.







Now let's see to how adding this reply button to each comments in blogger.



1.) Go To dashboard Click Design > Edit Html > Tick the 'Expand Widget templates' box.

2.) Press Ctrl + F and search for below code

<data:commentPostedByMsg/>


And place the below codes after it.


<span><a expr:href='&quot;https://www.blogger.com/comment.g?blogID=YOUR-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=450,height=450&quot;); return false;'>[Reply]</a></span>


Note:

You must need to change the YOUR-BLOG-ID with your blog id. Now how to get your blog id.Just got to blogger Design > Page Elements.
Now see for adress bar in your browser.You will get link like this.








Just get the id number in pink border and replace in the above code. And you have done now and just save your template.Now you will be able to see the reply button in each blogger comments.


Change Reply text into Button:

              Some users like to keep reply button instead of text [reply]. So just replace [Reply] in red with the below code and customize the image link to whatever reply button you want to use or keep it as default.

<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEikHnpCeTBrIIgD9J9q3QBzHyvl16olxuoq_Z7nXj1ApqmxFNS5FgVvMvI1yICWKvFb6li1MOzGy6J7D6-rOxj0Xf7IUZExYh6dq4rXsDM622f42egE7RF6dsH46I1W3KK2a4lhgUOvVnHi/s1600/reply%5B1%5D.gif"/>
That's it.


Source: anshuldudeja



No comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...