Thursday, 5 February 2015

How to add the comment form to my template?

Blogger recently added the Comments Form within the same template, below the individual posts, if your template does not have the form there, you may need to manually add it or activate it.
To add it manually:

1. Enter in the code of your template (Dashboard → Design → Edit HTML or Dashboard → Template → Edit HTML in the new Blogger design) and search for:

code: 


<a expr:href='data:post.addCommentUrl' expr:onclick='data:post.addCommentOnclick'><data:postCommentMsg/></a>

2. Replace that code with the following:

code: 

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

To activate it:
  1. Enter the options panel comments (Dashboard → Settings → Comments).
  2. And in the “Comment Form Placement” section, select: Embedded below post.
Note: If you are using the new Blogger design, you will need back to the classic version and follow the two step above.

0 comments:

Post a Comment

 
Sohoz-Tech