How to Embed a Comment Box in Blogger

Posted by Flisha | 6/30/2008 02:43:00 AM | Tutorial | 17 thoughts »

First of all you must have enabled Blogger in Draft in your dashboard to be able to use this service. If you are using a basic Blogger template without customizations, go to Settings -> Comments and in the section for Comment Form Placement, select "Embedded below post".

If, however, you downloaded a customized Blogger template from another site or made your own changes to the template, doing this won't work. So let's get down and dirty again. This is much easier than placing star ratings.

Okay, now go to Layout -> Edit HTML and mark the box Expand Widget Templates. Look for this piece of code:


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

You can find it easily by searching for the term "addCommentUrl". There are two instances of this in your template, choose the one that matches the above code. In my template, the next line after this code was <div id='backlinks-container'> so that might help you a bit.

Then delete the code I made you look for and replace it with this:

<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>
</b:if>

Save your template and refresh your blog! Hope your frustrated readers will no longer be able to see the pop-up comment box ever again! :-)

P.S. Amanda from Blogger Buster has similar instructions, but they didn't work for me. My blog's base template is the minimalist theme from Blogger, perhaps that has something to do with it. But anyway, if this code doesn't work for you, you might want to check out Amanda's tutorial.

Related Posts:



17 thoughts

  1. Kim // June 30, 2008 1:09 PM  

    hi Flisha
    I tried Amanda's tutorial but it didn't work...this worked like a breeze on Amanda's blue steel template that I have installed on my blog...
    thanks so much for your clear instructions :))

  2. Flisha // June 30, 2008 3:04 PM  

    Hi Kim, glad to be of help :)

  3. Martin Miller-Yianni // June 30, 2008 8:21 PM  

    I tried this as well but it didn't work it couldn't be save as the comment it wasn't well formed etc kept coming up. Shame!

  4. Ana // June 30, 2008 9:18 PM  

    Thank you so much to write about this here, otherwise it would have taken some days until I discover this new feature! It works like a charm!

  5. Arielle // July 01, 2008 10:31 PM  

    Thank you!

    for being one of the Top 25 EC Droppers in my blog!

  6. Flisha // July 01, 2008 10:49 PM  

    Hi Martin, sorry I couldn't be of help, did you try Amanda's tutorial? It might be because we're using different base templates.

    Ana, I'm glad this worked for you. :)

    Arielle, your blog is simple and cute. Are those flowers cherry blossoms? :) Thanks for dropping by regularly too. :)

  7. Altuğ KOÇ // July 14, 2008 2:42 AM  
    This post has been removed by the author.
  8. Altuğ KOÇ // July 14, 2008 2:45 AM  

    Thanks a lot Flisha, this tutorial helped me to fix the problem! :)

    Also, i'm wondering about, is it possible changing comment form's place? Maybe, it should be better placed at top of the comments instead of under the all comments...

  9. Flisha // July 14, 2008 2:57 AM  

    Hi sure you can. You can take this piece of 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>

    and place it right before this piece of code:

    <h3>
    <b:if cond='data:post.numComments == 1'>
    1 <data:commentLabel/>
    <b:else/>
    <data:post.numComments/> <data:commentLabelPlural/>
    </b:if>
    </h3>

  10. Altuğ KOÇ // July 25, 2008 11:57 PM  

    Thanks again for guidance Flisha. Now i have one more question for you, i hope you won't get angry because me :P

    Due to my modified blog, my "Delete Comment" button doesn't exist in the comment bubbles. How can i fix it? Which codes are for Delete thing...

  11. Flisha // July 26, 2008 12:05 AM  

    Hi, happy to help.

    Unfortunately I don't have experience manipulating the Delete button. Try to search for it on Google, I'm sure there are people who have already come up with some solutions.

    Good luck! :)

  12. Jer979 // August 01, 2008 11:26 AM  

    Thanks for the post, appreciate it. Only thing is...I can't see any comments that are made on a given post. ;-(

    Strange, eh?

    Any ideas?

    jer979.blogspot.com

  13. Jer979 // August 01, 2008 11:54 AM  

    forget it, i reverted widgets back and it seems to have fixed it. Thanks

  14. Anonymous // November 27, 2008 11:29 PM  

    hi

  15. Mahesh Sindbandge // January 02, 2009 6:04 PM  

    is this problem got solved??
    even i have the same problem..
    I dont see any comment link at teh end of any post of mine..
    pls suggest soemthing
    thanks
    Mahesh

  16. Flisha // January 02, 2009 8:26 PM  

    @Mahesh, I suggest you revert back to a classic template like Minima so your comment box will show. (Then afterwards modify it to suit your taste.) It looks like the template you're using is completely devoid of the comments.

  17. Missy // February 24, 2009 2:20 AM  

    I am having the problem of not being able to see the comments above OR below the comment form. How do I get them to show up? I'm using a customized template (www.primpandtell.com).

    THANKS!!

Post a Comment

What's your take on this random post?