WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Change TEXTAREA in Contact Form 7 plugin (5 posts)

  1. danicasati
    Member
    Posted 6 years ago #

    Hello.
    I need to get bigger TEXTAREA into my forms generated with Contact Form 7 plugin.
    How can I do this?

  2. danicasati
    Member
    Posted 6 years ago #

    Ok.

    File: wp-contact-form-7.php
    Change line 767:
    $html = '<textarea name="' . $name . '"' . $atts . '>' . $value . '</textarea>';

    into:
    $html = '<textarea cols="40" rows="15" name="' . $name . '"' . $atts . '>' . $value . '</textarea>';

    where COLS and ROWS are your personalized value.

  3. danielwalters6
    Member
    Posted 6 years ago #

    Thank you - this has helped me a lot.

  4. joe_bru
    Member
    Posted 6 years ago #

    Hello!
    Does anyone know how to modify the structure of the form? I need to place 2 required info fields in the same line, while the default configuration of this plugin only allows 1 field x line in vertical disposition.

    The result should be visualized in this way:

    from...
    NAME [FIELD]
    SURNAME [FIELD]
    CITY [FIELD] COUNTRY [FIELD]

    to...
    NAME [FIELD] SURNAME [FIELD]
    CITY [FIELD] COUNTRY [FIELD]

    Thank you!

  5. danielwalters6
    Member
    Posted 5 years ago #

    Are you talking about placing it on the form, or the email message that's sent from the form?

Topic Closed

This topic has been closed to new replies.

About this Topic