What is the correct syntax to alter the size of the comment form body text area? I can't for the life of me find it in devel dpm.
$form['comment_body']....something....
You can use the #rows
and #cols
properties to define the height and width respectively:
$form['comment_body'][LANGUAGE_NONE][0]['#rows'] = 10;
$form['comment_body'][LANGUAGE_NONE][0]['#cols'] = 50;
#cols
, not #columns
, it should probably be $form['comment_body']['und'][0]['#cols'] = 20;
cols
attribute on the <textarea>
element. Try adding .form-textarea-wrapper textarea { width: auto; }
to your stylesheet, that'll override the width: 100%
set in the system CSS files. If you've got a WYSIWYG editor on the comment body this probably won't work, as they tend to fill the width of their container