In this tutorial I want to show you how to replace the 'Post A Comment' text that appears above the comment form with an image. Also, I added a few cool images that you can use but you can as well add your own image, that depends on your tastes. So, let's start adding it!
How to replace Post a Comment with an image
In order to replace "Post A Comment" message in Blogger / Blogspot, follow the steps below:
Step 1. Log in to Blogger, go to your Blogger Dashboard and select your blog.
Step 2. Go to Template and press the Edit HTML button
Screenshot |
<a expr:href='data:post.addCommentUrl' expr:onclick='data:post.addCommentOnclick'>...and for this one too:
<data:postCommentMsg/></a>
<h4 id='comment-post-message'><data:postCommentMsg/></h4>Step 4. Replace <data:postCommentMsg/> with one of the below image addresses:
<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDa4zLmhOnvSUhCFfNLMG4569nT_9RKF9MKjKg2P1JuSVjj4ldx2w0svaV92Klo4xeewBjJQo66Kwjs-T5TqD41MnnhxSHWR3WbTl0v7iXifYohNBbQFqZjZBYrHNohupN3So0sHPlpkU/s1600/leave+a+comment.png" />
<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgUe_D64Yi3SssWnZkUoaByQLvORkka5eW_BS75K-BTl_42Ba_px1el-kIXFfs1yjkNQ__e0tIiJhyphenhyphenp-iGbem4ktKDBDM54UdL8NsiC9PeXLwOEKfAb_LiQfaEAIroPwY3Iu43K0ggD6RI/s1600/Post+a+comment+blogger.png" />
<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJsZ2PnBiZ4ltM0IOWoYO9Zxke-uwITF5VgG7rvxCRScKWGGvUVRLpBL0TanYy9FM18iJwWor98Ln-cZD7oQWC3Eo5U0aKMbA8LgaPv0gzkUXwiL6xphO45PfweTFpfBwfKK5Gsxv76pCS/s1600/animated+comment+arrow.gif" />
<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsIFJBvKjfNm3Q82QPOxhqXMC6xpxE_-IC-v_b-XLBbemXXt__Ju5oDKQxdV_phPyd8d45ctq2JIV_NnQi4HdNg97BShLoMNyGE1fUXWpWmAWA7Fdg0CYsuuhNS-vMlg7Yusq8zT_DPgLp/s1600/leave+a+comment2.png" />
<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhnwJHNtBLbQJfDeLR66voSACqfVZgMcYutykEjlGXoYfJ9fUWUaHC6gctdXyK6sN2222QrBQDy3B5se93iqhO8kybo5QqBUcw-cGZAPP76m79LgPRJQT70N5M-k_uQ21G3REQ_eFwC1UOG/s1600/comment.gif" />You can use your own image instead. Just upload your image on Blogger, switch to Edit HTML tab, copy the image code and replace <data:postCommentMsg/> with your code.
UPDATE! Step 5. The first steps will replace the text only when there are no comments available. To show the image each time new comments are added, we should add the code of the image we want to appear after the 4th of the below code (you'll find it in more than one location):
<p><data:blogCommentMessage/></p>
If you want to center the picture, just put the code between the "center" tags... like this:
<center><img src="Image-URL"/></center>Step 6. Save Your Template.
Thats it! I hope you like your new comment form!
Hiç yorum yok:
Yorum Gönder