WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form 7
[resolved] Formatting form for sidebar (4 posts)

  1. Mejms
    Member
    Posted 1 year ago #

    Hi everyone,

    I'm stuck on something fairly simple. I want to format the fields for the contact form so they fit on the sidebar. The spaces are too wide.

    I tried the suggestion found here of just changing the size tag, but nothing happens. However, I am able to change the maxlength tag without a problem.

    http://wordpress.org/support/topic/plugin-contact-form-7-changing-form-width?replies=11

    Here's my page with the contact form in the sidebar:

    http://www.englishexperts.com.mx/meet-the-experts/

    http://wordpress.org/extend/plugins/contact-form-7/

  2. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 1 year ago #

    http://www.englishexperts.com.mx/the-start/themes/duotive-three/style.min.css
    Line #1463

    #sidebar input[type="text"], #sidebar textarea {
        background: url("images/sidebar-form-bg.png") repeat scroll 0 0 #FFFFFF;
        border-color: #CCCBC6;
        border-style: solid;
        border-width: 1px;
        margin-bottom: 10px;
        padding: 5px 8px;
        resize: none;
        width: 242px;
    }

    The last width: 242px; is actually set for the fields. Try Firebug to find CSS problems.

  3. Mejms
    Member
    Posted 1 year ago #

    I'm really a non-techie, so I don't quite understand what to do. Could you explain the steps to me in changing the width of the fields? I'm unfamiliar with Firebug and would have no idea how to use it. Is it possible to change the width of the fields in some simple way?

    Thanks.

  4. blindscientist
    Member
    Posted 1 year ago #

    Hi Mejms,
    Firebug is a free add-on to Mozilla Firefox, and it's a great tool for figuring out problems like this. That's how Takayuki figured out what stylesheet and line your problem was on. That said, you need to open your style sheet editor and open style.min.css. Then navigate down to line 1463. Then, look for the line that reads "width: 242px;" and change it to "width" 202px;" . Hope this helps.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic