
Screenshot :
Live Demo - Click To See The Live Demo : Facebook Like In Comments
OK lets add this cool feature to your blog.
Add Facebook Like Button To Blogger Comments
Step 1. In your Blogger Dashboard click > Design > Edit Html > Expand Widget Templates :



Step 2. Find the following piece of code in your blogs Html : (Click Ctrl and F for a search bar to help find the code - More Info)
<data:postCommentMsg/>
Important - This code will be in your template more than once, you need to find the code wrapped in heading tags (Example - h2, h3, h4).So it will look similar to this :
<h4 id='comment-post-message'><data:postCommentMsg/></h4>
Step 3. Copy And Paste The Code Below Directly After <data:postCommentMsg/>
<a href='http://www.spiceupyourblog.com'><img alt='Best Blogger Tips' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-IlJVzvSCVVSsiCqqQ5Bn4soziCBcd7DetVFsPvbjCMRJ136yeOqY41CdMZtj3Bmb2_OwWRCin7zuIs-dxw9tyc2fitpdO8ZFi2IccLjOnhdWkFxtY-8y6mryCktW5nJpQbhnIa-_1ZaB/s1600/best+blogger+tips.png'/></a><br/><iframe allowTransparency='true' expr:src='"http://www.facebook.com/plugins/like.php?href=" + data:post.url + "&layout=standard&show_faces=false&width=100&action=like&font=arial&colorscheme=light"' frameborder='0' scrolling='no' style='border:none; overflow:hidden; width:450px; height:40px;'/>
It will now look like this :
<h4 id='comment-post-message'><data:postCommentMsg/></h4><br/><a href='http://www.spiceupyourblog.com'><img alt='Best Blogger Tips' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-IlJVzvSCVVSsiCqqQ5Bn4soziCBcd7DetVFsPvbjCMRJ136yeOqY41CdMZtj3Bmb2_OwWRCin7zuIs-dxw9tyc2fitpdO8ZFi2IccLjOnhdWkFxtY-8y6mryCktW5nJpQbhnIa-_1ZaB/s1600/best+blogger+tips.png'/></a><iframe allowTransparency='true' expr:src='"http://www.facebook.com/plugins/like.php?href=" + data:post.url + "&layout=standard&show_faces=false&width=100&action=like&font=arial&colorscheme=light"' frameborder='0' scrolling='no' style='border:none; overflow:hidden; width:450px; height:40px;'/>
Step 4. OK with the code in place you can save your Blogger Template and check out your comments with Facebook Like Icon Button.
You can also add a nice image in that section instead of the post a comment test - Replace post a comment with an image.Make sure to check out more of our Social Media Tips and Blog Design Posts.
Drop Your Comments, Views And Questions Below.
Nenhum comentário:
Postar um comentário