Contact Form 7 Captcha-Textarea Height and Width

Ever wonders how can you change the height and width for captcha and textarea in Contact Form 7? Here is how.



Captcha height and width

Locate and open /public_html/wp-content/plugins/contact-form-7/modules/captcha.php

  • in line 37 amend ‘img_size’ => array( 72, 24 ),
  • in line 496 amend $op[‘img_size’] = array( 72, 24 );

The value “72” represents the width and the value “24” the height.

Note: width and height should match in both lines.

Textarea height and width

Locate and open /public_html/wp-content/plugins/contact-form-7/modules/textarea.php

  • in line 30 amend  $atts[‘cols’] = $tag->get_cols_option( ‘40‘ );
  • in line 31 amend $atts[‘rows’] = $tag->get_rows_option( ‘10‘ );

The Value “40” represents width and the value “10” the number of lines.

Please leave your comments below with your thoughts or alternative suggestions.

Nik

Experienced IT Consultant working and living in the UK. In early years he was born and raised up in Greece and been to the UK since studies. He is passionate with technology, gadgets and computers, he really likes the internet and IT in general.

You may also like...

Leave a Reply

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