• Resolved smugel

    (@smugel)


    I’m running a Charitable campaign which requires a custom field: I want donors to be able to leave us a message. This is already up and running (see bellow). I did this by creating my own custom plugin which adds a new “custom_message” field (great documentation, thanks).

    I would like to increase the height of the box for the “custom_message” field. Any ideas how I could do this?

    • This topic was modified 1 year, 2 months ago by smugel.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author David Bisset

    (@dimensionmedia)

    @smugel Are you using a text field or a textarea field? If you want the height to be increased then I would go with textarea which should add rows automatically (and with custom code or CSS you make it any height you want). Note that’s listed as a value “type”:

    https://www.wpcharitable.com/documentation/charitable_donation_field/

    I’m incorrect or you’re doing something different, let me know. Thanks!

    Thread Starter smugel

    (@smugel)

    This is exactly what i was looking for, thank you! What css code would you use to modify the textarea height?

    Plugin Author David Bisset

    (@dimensionmedia)

    @smugel Something as simple as below. You might need a more specific identifier (like a class name). Hope this helps!

    textarea {
      width: 300px;
      height: 150px;
    }
Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Custom form fields height’ is closed to new replies.