Ubuntu / Linux news and application reviews.

In the first few posts on our new blog, i am going to write about how i managed to make this blog work, because Blogger is not so easy to use if you want a few advanced features and also it's quite buggy if you use non-default stuff. The first thing that almost made me want to change the blogging platfom was the custom themes not supporting by default embedded comments below the posts. Well, actually they do, but there's a trick to it. So here is how to make custom Blogger templates embedded comments work:


First of all, you must enable embedded comments in the Blogger menu. To do that, go to Settings > Comments and on the Comment Form Placement select Embedded below post. Then, go to Layout > Edit HTML and check Expand Widget Templates, then search for code that looks like this:

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

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>

Save it, and you should have the comment field embedded under the posts, like we have here, on WebUpd8l.