0

How to remove the red section in next image (comment form)?

gh

I have try change the type to textarea, but on submit the form a blank page appears.

function THEME_form_comment_form_alter(&$form, &$form_state) {
    $form['comment_body']['#type'] = 'textarea';
}
0
1

You can make the field plain text in the comment body field settings.

e.g:

http://example.com/admin/structure/types/manage/article/comment/fields/comment_body

"Text processing" > "Plain text"

2
  • is possible convert ENTERS (news lines) in paragraphs? – Miguel Borges Feb 19 '14 at 3:09
  • To convert new lines to <br /> you may need to use a theme function and the nl2br function – David Thomas Feb 22 '14 at 0:11
0

You can hide all that text entirely by using the "better formats" module. https://drupal.org/project/better_formats I think that is what you're after, here. But you'll also just want to be cautious that you're setting a proper input format for people here for what they're doing. For comments, you'll likely want it to be a very limited HTML format, or a Plain Text format.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.