Friday, June 11, 2010

Customize Blogger Comment Form – Make It Possible!

Customize-Blogger-comment-form Today's tutorial is the most demanded and most wished but rarely answered in blogosphere. For some designers customizing the Blogger Comment Form is somehow not possible whilst for others it is tricky but from today onwards InshAllah every blogger will actually be able to customize the Blogger Comment Form in the best way possible! After some trial and errors we actually succeeded in altering Blogger’s official CSS coding. We are happy to have brought you with a tutorial that will indeed enable you to have a customized Comment Form far better than that of Wordpress, Typad etc. Please have a look at some examples below,
Brick Style Comment Form
Wooden Style Comment Form

Now Hover Your Mouse Cursor at these comment forms for 3-4 seconds to see something different!
Baby Comment Form with message for spammers
Simple Comment Form with message for spammers

Orange Comment Form with message for spammers
We hope you liked this new discovery! Lets now learn how to customize the blogger comment form/box to suit your preferences.

Adding A Customized Comment Form To Your Blog

Note:- The Following CSS code is for the Comment Form With a Baby in it. Other CSS codes will be provided to subscribers only. If you haven’t subscribed yet kindly subscribe now and inform us by leaving a comment with your Email ID.
Follow these steps,
  1. Go To Blogger > Layout > Edit HTML
  2. Check The Box “Expand Widget Templates” at the top right corner.
  3. Search for the code below,                                  Tip:- Press Ctrl + f
<div class='comment-form'>
     4.   Replace this code with the code below,
<div id='mbt-form'>
     5.   Now Search for ]]></b:skin>
     6.   Just above ]]></b:skin> paste the CSS code below,
#mbt-form iframe{
background:#ffffff url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCXPS9Q_4_eaWs3vUXsoTQ0SE4fI-QbNGL2H0irgk29vjU5eWLrWPnIkJIRqoHPs1WCxGg7v2vTIuLhku_U7Tq6LR0hDECud1VkKewUtyW0HB5UFllx90AC-PdzBosir9z58d7mwsuonDB/s400/plz-do-not-spam1.gif) no-repeat bottom right;
border:7px solid #C7C7C7;
padding:5px; font:normal 12pt "ms sans serif", Arial; color:#7EB2AC; width:450px; }
#mbt-form iframe:hover{
background:#ffffff url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjr3LpPoeBWPFJqGsSFZlcjKtWTE6G63eyHMLScrik9krDepUXUK3OtzAFk2dyuo36fRfKZu3NbdER3ZMPbRJM-2Qr4IkXUr79ue79K1Q8oJVdIjpxGg1ch7VOLN1Qx-8-fSSdHq9pGu6GG/s400/plz-do-not-spam2.gif) no-repeat bottom right; border:7px solid #7EB2AC;
}
#mbt-form a{
color:#7EB2AC;
}
     7.     Save your template and view your blog to see a different touch :>

Customize The Blogger Comment Form To Suit Your Blog Layout

Now Lets discuss the important areas in the CSS code above to help you customize your Blogger comment form according to your preferences.
There are three important areas, which are,
#mbt-form iframe
#mbt-form iframe:hover
#mbt-form a
Here are the details for each section
1.    Customization For Active Mode
#mbt-form iframe
This part is responsible for the active appearance of comment box when mouse cursor is not hovered on it. It includes the following style properties,
background: This property is responsible for the background color, background image and background image’s position. Where,
  • #ffffff : This is the background color. You can change it using our Color Chart
  • url : This is the URL for the background image. I used the baby in this case. You can change this image with anything you like.
  • bottom right: This positions the background image. I positioned the baby on bottom right corner. You can position the image at bottom right or bottom left or top right or top left
border: This CSS property defines the border size/width, style and color of the comment box. I have set these values for the Comment form in active mode(not on mouse over),
  • border size to 7px,
  • border style to solid. You can choose solid, dotted, dashed etc. See this page on border styles
  • border color to  #C7C7C7. Use our CSS Color Chart for using a different color.
padding: This CSS property is responsible for the distance/gap between the Comment Form border and its text area. You can increase this value if you wish to insert an image at top right or top left corner of the form.
font:  This CSS property defines the boldness, font family and the size of the text. I have set the following for the text “Comment as:”
  • boldness to normal,
  • size to 12pt 
  • font family to  "ms sans serif". If in case the browser doesn’t has the "ms sans serif" font then I have set Arial as a backup.
color: This property defines the color of the text “Comment as:” . Use our Color Chart for changing the text color.
width: This property sets the width of your Comment Form. You can see the comment from of my blog is wider than normal because I have adjusted its width. Set the width of your comment form a bit smaller than that of your post width. You can find your post width by finding the following code in your template (Edit HTML)
.post

2.  Customization For Mouse Hover Mode Now lets discuss the CSS properties for the form’s appearance when a mouse cursor is hovered on it.
#mbt-form iframe:hover
It has almost the same explanations for background and border as we discussed earlier. Setting these two CSS properties will effect the second image only that appears on mouse hover.
3. Customization For The Link Colors
#mbt-form a
This part defines the color of these two links -> “Sign out” and “Subscribe by email” . These links appear at bottom right corner of every Blogger Comment Form.
color: This sets the link color. Set a link color as contrast to the background color.

That’s All!
I hope this tutorial will be of great help to bloggers and designers. We request everyone to kindly link back if you wish to share this unique tutorial with your readers and friends. We thank you for your patience.
Any question is welcomed :)

All Rights Reserved GprsBay | Blogger Template by Bloggermint