Wednesday, December 9, 2009

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(http://3.bp.blogspot.com/_7wsQzULWIwo/Sx1aCAx_44I/AAAAAAAACeo/HZz8QQT0etM/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(http://1.bp.blogspot.com/_7wsQzULWIwo/Sx1Zs5rasXI/AAAAAAAACeg/0fBam5AkHS0/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 :>


Respected Readers:
As a 20 year old student, the only income I rely on is my pocket money. Bearing the running costs of MBT Blog has become really difficult. We educate thousands of bloggers a week with our tutorials. To help us go forward with the same spirit, a small contribution from your side will highly be appreciated.



If you enjoyed this post and wish to be informed whenever a new post is published, then make sure you subscribe to our regular Email Updates!

Thanks for making this possible! Kindly Bookmark and Share it.
Technorati Digg This Stumble Facebook Twitter

37 comments:

Adnan on 8:21 PM, December 09, 2009 said...

This is something remarkable you have done mohammad! Thank you so much. I really never expected to see my own form with my own customized colours and look. I thank you so much for making it so easy.

Willi said...

I really don't know how to thank you except that you made my day!

Just subscribed using the ID
svwillie @ G Mail

Please sent me the code for that wooden style comment form

TAMIL on 1:47 AM, December 10, 2009 said...

wonderful Mohammad

Mohammad Mustafa Ahmedzai on 2:23 AM, December 10, 2009 said...

@adnan
Thanks for you subscription.
Code Sent!



@Willi @TAMIL
It is exciting to know that you guys found it interesting.

jayaraj on 6:38 AM, December 10, 2009 said...

For me also please jayaraj.chinna@gmail.com

Amit said...

This is another cool post Mohammad.thanks
but i want to add image before comment form,just like u.plz help me with that.I am providing a image that will help u what i am exactly want.
http://i49.tinypic.com/bg6w6a.png

Mohammad Mustafa Ahmedzai on 7:36 AM, December 11, 2009 said...

@Chinna

Code Sent!

@Amith

Do This,

1. Go To Blogger > Layout > Edit HTML
2. Check The "Expand Widget Templates" Box
3. Search For This, <data:postCommentMsg/>
4. Replace it with this,

<img border='0' src='IMAGE-URL-GOES-HERE'/>Confused? Feel free to ask

Remember to replace IMAGE-URL-GOES-HERE with your image link.
5. Save your template
6. Done! :>

Gaung Mahasiswa on 6:28 PM, December 18, 2009 said...

thanks a lot. very use full

Sachin on 12:33 PM, December 20, 2009 said...

wow nice will you make one for me according to my blog please???
http://airtelcoolhacks.blogspot.com

Mohammad Mustafa Ahmedzai on 6:36 PM, December 20, 2009 said...

@Sachin

Learn it your self using our HTML Editor. You will surely make one!

Frankie John on 12:35 PM, December 21, 2009 said...

I not really understand about the article, i try to do myself but still can't. Can you help me?.


Please sent me the code for that baby style comment form. This is my email address ; frankiejohn4u@hotmail.com and this is my blog ; http://frankiejohn.blogspot.com/

Thanks for your loyal supports,

Frankie John

Γαληνός on 4:48 PM, December 21, 2009 said...

Amazing and too easy!!!
Really thanks!

Mohammad Mustafa Ahmedzai on 1:37 AM, December 22, 2009 said...

@Frankie John

You will need to first subscribe by submitting your email address in the subscription form on the right sidebar. I will email you the code instantly along with instructions. TAke care :>

@voc

Thanks dear.

Paul Crowe on 9:09 AM, December 26, 2009 said...

You got some great tips here but this is one of my favorites !

I had played around with the comment section but nothing this inventive.

Thanks.

Paul.

Mohammad Mustafa Ahmedzai on 9:12 PM, December 26, 2009 said...

@Paul Crowe

You welcome Paul :>
Attach your Subscription Email ID if you wish to receive the CSS codes for other forms.

ޙައްސާން on 7:14 AM, January 07, 2010 said...

Is this really possible? Is there a way we can translate the comment form?

Mohammad Mustafa Ahmedzai on 11:38 PM, January 08, 2010 said...

Of course it is possible. The examples are in front of your eyes.
Well unfortunately the comments ID names and other text data can not be translated.

varun on 6:17 PM, January 09, 2010 said...

can you give the css code for the 2nd one(the wood).
I have suscribed
varun419@in.com

Beben on 6:57 AM, January 22, 2010 said...

i'll try it first...thanks

Viprolang on 7:46 AM, January 22, 2010 said...

can you give the css code for the 4th one.
I have suscribed. My email: huynhathawave@yahoo.com. Thanks alot.

Mohammad Mustafa Ahmedzai on 12:34 AM, January 23, 2010 said...

@varun

Just sent you the CSS codes! :>


@Viprolan

Friend kindly activate your feeds first to receive the requested code. I will email you the codes as soon as I find that the feeds have been activated.

Rafay Baloch on 2:13 PM, January 25, 2010 said...

Hi there i have subcribed to your post,kindly email me the codes,abdulrafay_789@hotmail.com

mary on 3:11 PM, February 02, 2010 said...

i subscribe you..and i wanna codes of this comments form
mary_3st3_tare@yahoo.com

have a nice day!
xoxo,mary ^^

mary on 3:17 PM, February 02, 2010 said...

i wanna mean THESE******** comments form
god! -_-'

sorry again for english

varun on 11:52 AM, February 28, 2010 said...

varun419@in.com

Can you please send this again to my email.I lost the one you sent me.Thanks

varun on 2:29 PM, March 02, 2010 said...
This post has been removed by the author.
varun on 2:30 PM, March 02, 2010 said...

Hello,Anyone There,,I need This Package varun419@in.com

Elizabeth on 3:18 AM, March 06, 2010 said...

have subscribed and am interested in comment forms.
elizabeth_seither@hotmail.com

thanks

Alex on 3:39 AM, March 10, 2010 said...

Is there any way to change the height? I've tried editing the height in the iframe itself and all possible classes/id's

it's driving me insane because I align my blog to a grid! :/ :p Thanks! :D ;p

aditzz on 3:17 PM, March 11, 2010 said...

punya saya form komentar nya kok malah kepotong yah waktu pas verivikasi kode nya...?? gmn tuh boss?? please share dong..

lam kenal adit

Anonymous said...

test

Anonymous said...

Thank you!!!

Injun Jim on 5:06 AM, April 26, 2010 said...

Hi Mohammad-

Excellent tutorial.

How would you change the color of the actual WHITE Comment form? I've actially tried adding CSS Style commands to the command-form area, and even created a CSS element to refer to 'comment-form', but I've had no luck.

I've always used a dark Blog template, so it would be great to lessen the bright contrast of White on the comment form. Or perhaps even giving it a light/pastel color to match any of the techniques you've demonstrated here. Any ideas?

Again, thanx for the tutorials here- I especially like the 'hover over' toggling.

cheers-jym

For Lush on 3:40 AM, June 20, 2010 said...

Stopped me from using Disqus. Good.

Yılmaz Barış on 3:56 PM, June 27, 2010 said...

Yararlı bir paylaşım olmuş teşekkürler...

Ana Laura on 8:11 PM, July 15, 2010 said...

Excellent. I followed your instructions and it worked perfectly in the first try.

Thank you!!

Rachael Taylor on 9:54 PM, July 21, 2010 said...

This is awesome thank you, I haven't tried it yet but I'm excited.

In other questions...How do you make it so that when you respond your comment looks different than ours?

Confused? Feel free to ask

Your feedback is always appreciated. I will try to reply to your queries as soon as time allows.
Note:-
1. Please do not spam Spam comments will be deleted immediately upon my review.
2. For asking Off-Topic questions please comment on this page -> Blogger Help

Regards,
Mohammad

 

Recent Posts

Join Me On Facebook

532+ Followers

Join The Team!

Licensed Under CC

Creative Commons License

Recent Comments

Follow Me On Twitter

| My Blogger Tricks (MBT) © 2010. All Rights Reserved | Template Style by Mohammad Mustafa Ahmedzai |