Adjusting your Contact Form 7 plugin

14
1.5K followers
Updated

Hi,

What I found is that when I tried to put my Contact Form 7 plugin in my main sidebar, the field lengths were too long and bled over the side of my page.

So what I learned thanks to krystlezee's feedback on my site, was how to adjust the settings with CSS. Here is the code I am now using in my 'additional css' section under 'appearance' and 'customize.'

.wpcf7

{

background-color: #f7f7f7;

}

input[type="text"],

input[type="email"],

textarea

{

background-color: #fff;

color: #000;

width: 90%;

}

Hope this helps someone! The first background color in the code is for the background of the form itself to make it gray. The second background color is for the color of the fields (I kept them white).

Login
Create Your Free Wealthy Affiliate Account Today!
icon
4-Steps to Success Class
icon
One Profit Ready Website
icon
Market Research & Analysis Tools
icon
Millionaire Mentorship
icon
Core “Business Start Up” Training

Recent Comments

13

Thanks Tim for sharing this instructive post with us! I copied the code for later use.

You're very welcome. I'm glad I could help somebody :)

Thanks Tim, much appreciated :-)

Thanks for sharing! Very helpful!

oh good! glad you can use it :)

Thanks for this, will save it for later.

thanks for sharing, great info

thanks for the information!

Important contact form

Thank you for sharing

Very nice.

Now I know where to look when I need to adjust the size of a contact form! Thanks! =)

Yes. Thank you so much for your helpful feedback :)

See more comments

Login
Create Your Free Wealthy Affiliate Account Today!
icon
4-Steps to Success Class
icon
One Profit Ready Website
icon
Market Research & Analysis Tools
icon
Millionaire Mentorship
icon
Core “Business Start Up” Training