How to Add Embedded Comment Form in Blogger

Posted by Prem Godara | 1/24/2009 06:48:00 PM | , , | 3 comments »

Many Blogger users face the problem of not having a embedded comment form below their blog post unlike wordpress. But there is a trick by which you can include the embedded comment form after adding few lines of HTML code below your blog post.

Follow the below steps to achieve it:

1) First login to draft.blogger.com or blogger.com with your Google account.

2) Navigate to Settings -> Comments and select the "Embedded below Post" option as shown below.


If you are using uncustomized blogger template, then the above step is enough. For users who are using customized blogger template continue the below steps.

3) Navigate to Layout -> Edit HTML and first take a backup copy of your template. Then check expand widgets and search the following 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>

3) Now, replace the above code with the 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>

4) Now, save your template and see your blog post having embedded comment form below.


Let me know by writing a comment on this post, how much you liked this post.



3 comments

  1. Anonymous // January 25, 2009 at 7:52 PM  

    list this blog in BloggersBox

  2. Anonymous // January 30, 2009 at 11:17 AM  

    Worked like a charm although the original code that I replaced was not exactly the same as that posted above. Would that be an issue? The template I am using is the blogger ads theme from http://www.eblogtemplates.com/

  3. Prem Godara // January 31, 2009 at 4:14 PM  

    No, it wont be an issue..In customized templates the code might differ little.

Post a Comment


Your Ad Here