Comment Form Under Post On Blogger, Finally Officially Embedded!

11 Sep 2009

To enable inline comments for your Blogger powered blog, you need to log into your dashboard through Blogger. Then go to Settings Comments and scroll down the page to see the new "Comment form placement" setting:

Check the radio setting for "Embedded below post" which will enable the display of the comment form below your blog posts. If you have customized your template, you will need to make a small change to your template code for this comment form to display. But don't worry, it's a very simple customization to make!



Simply go to Layout>Edit HTML in your blog's dashboard and check the "Expand widget templates" box. Then search for this section of 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>

Replace this entire section of code with the following instead:

<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>

Save it. And done.

9 komentar:

robin mengatakan...

Thank you I love it! You make me feel so smart!

Brian mengatakan...

Ohh my gosh! This is fantastic! Thanks a lot for the tip. I have no idea how you are so on top of everything that is Blogger so quickly and thorouly. Amazing...

Now, if you could guide us on the color of the text: "Comment as:" My blog background is very dark blue and the black doesn’t really show up.

Anesh mengatakan...

Blogger has finally come up with the inline comment form.. nice to see more and more features getting added to blogger..I have also added the old comment form in my blog..

ruri mengatakan...

Excellent! Thanks for this - I've been looking at this feature on Wordpress blogs for ages and wishing Blogger would implement it. Followed your instructions and it works a treat!

aan mengatakan...

Thank you very much, great code.

Juliet mengatakan...

Cool. I love it. Any idea how to show a few comments under each post on the homepage?

deINDIES mengatakan...

nice info, keep great posting

narti mengatakan...

nice artikle.
edit HTML, pusing....

narti mengatakan...

thanks for sharing friend

Posting Komentar