Wednesday, July 15, 2009

Embed Comment Form below post in Blogger

One of the problem blogger have is that Blogger don’t have a embedded comment form like wordpress. After a longtime , now blogger draft has found a trick to include comment form. It’s really an easy hack for those who use templates provided by blogger. For those who use customized template need to include a HTML code to make the comment form appear below each post.

Let see how to do this :

Step 1 : First login to with your google account . Then in blogger dashboard click settings then comments. There you will find three options like this
 Embed Comment Form below post in Blogger
As shown above check comment form placement : Embedded below post.

Step 1 is enough for users who use uncustomized blogger template. For them after doing this the comment form will be included below the post. Other users need to do the second step to make the comment form appear below post.

Step 2 :

Now go to Edit HTML section and first take a backup copy of your template. Then check expand widgets and search the folowing code

<p class=’comment-footer’> <b:if cond=’data:post.allowComments’> <a expr:href=’data:post.addCommentUrl’ expr:onclick=’data:post.addCommentOnclick’><data:postCommentMsg/></a> </b:if> </p>

Now replace the above code with this following code

<p class=’comment-footer’> <b:if cond=’data:post.embedCommentForm’> <b:include data=’post’ name=’comment-form’/> <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> </p>

that’s it save your template. Now you can see a beautiful comment form embedded below each post.

Screenshot :

 Embed Comment Form below post in Blogger

Troubleshooting :

Do this step only if the comment form don’t appear after step 2. In some templates even after adding this code the comment form will not appear. Thanks to Blogger Buster for this hack . Now search for and add the following code immediately below it .

After adding this code all templates will have comment form embedded below post . It’s really one of the best hack which draft blogger has now made it available for all blogger users. Before this most visitors might have felt uneasy to comment , because to write comments we need to navigate from the page or a pop-up window will open . But now writing comments is made very easy.

Anything else we can do with the comment form ?

Yes , we can change the width and height of comment form .

to change the width and height of comment form just change the following code in green .

<b:includable id=’comment-form’ var=’post’>

<div class=’comment-form’>

<a name=’comment-form’/>



<iframe allowtransparency=’true’ expr:src=’data:post.commentFormIframeSrc’ frameborder=’0′ height=’275′ id=’comment-editor’ scrolling=’auto’ width=’100%‘/>



Why are you waiting for , write a comment on this post and let me know how much you liked this post .

Stumble Delicious Technorati Twitter Facebook
If you enjoyed this post, make sure you subscribe as an Reader!


Post a Comment

← Newer Post Older Post → Home

Recent Posts

Recent Comments

Follow Me - Advertise your site at! Submit your site and get tons of traffic! - Advertise your site at! Submit your site and get tons of traffic!