Reduce (or Resize) Contact Form 7 Text Input Boxes

Ever Wondered How to Resize the Text Box Sizes of Your Contact Form 7? CSS doesn’t Work on that.

Here’s the Trick…

Sometimes, Contact Form 7 text boxes go outside the sidebar or they are too wide than required. CSS doesn’t even work while resizing or reducing the text box (input box) sizes of the WordPress plugin Contact Form 7.

C:UsersDeepakDesktoptempatechplanetReduce Size of the Contact Form 7 Input Boxes.png

I had the same problem and didn’t find a single answer on Google which could solve the problem of the Contact Form 7’s Text Boxes going outside of the Sidebar. After researching a bit, I found a working solution. Here’s it…

Reduce the Size of Contact Form 7 Text Input Boxes

  • Step 1: Log in to your wp-admin

First of all log in to your site’s wp-admin, install the contact form 7 and create a Form if not already did.

  • Step 2: Open the Contact Form to Edit

Click Edit and the form editor will open where you can edit your contact form.

Edit the Contact Form 7 Form

Your screen will look something like the above image when the Edit option is clicked.

Step 3: Do Some Changes in the Code

Add “25/” after text* your-name in the form as shown in the image below.

Edited Contact Form 7 to Reduce the Text Input Boxes Size

You can add this “25/” to all or any specific fields of your contact form.

Wrapping it up

If you want your text boxes to be a little smaller or a little larger then you can use “20/” or “30/” respectively.

Any doubts or suggestions are welcomed in the comments.

By DeepakNess

➣ Writing about business and tech since 2015
➣ Have helped over 300k people through writing
➣ Sharing interesting insights on Twitter too

24 replies on “Reduce (or Resize) Contact Form 7 Text Input Boxes”

this doesn’t work i have tried it and the cf7 form your name section on my website is the same size as the rest of the options

Bravo ! A good solution for a, usual problem without solution in a lot of forums ! Thanks a lot !
How can you do for “text area” box ? Your super solution works for text, tel mail but not for text area ? Thanks

Hey Deepak and Ivan
It really worked for me although I bit new to WordPress and don’t have any technical background as I use drag and drop builder for creating the website.

Awesome… NOV 21
and then I used
[textarea* your-message x3 class:form-control] for text box

I spent about fours before this popped up….. hahaha that’s the way it goes for me and web building…. takes 30 seconds after hours of research…..
So please recognize that your efforst are appreciated. Simply fantastic job to all.

Leave a Reply

Your email address will not be published. Required fields are marked *