Title: max comment length
Last modified: August 18, 2016

---

# max comment length

 *  [ehehrmann](https://wordpress.org/support/users/ehehrmann/)
 * (@ehehrmann)
 * [18 years, 8 months ago](https://wordpress.org/support/topic/max-comment-lenght/)
 * How can I set a character limit to the comment form so that visitors can only
   post let’s say 400 characters?
 * Thanks for helping!

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [juliannay](https://wordpress.org/support/users/juliannay/)
 * (@juliannay)
 * [18 years, 3 months ago](https://wordpress.org/support/topic/max-comment-lenght/#post-613809)
 * Did you ever find a solution for that? I just looked through the plug-ins, and
   couldn’t find anything. The only thing I can think of is changing the length 
   of the field in the database itself, but that’s probably a very messy option.
 *  [juliannay](https://wordpress.org/support/users/juliannay/)
 * (@juliannay)
 * [18 years, 3 months ago](https://wordpress.org/support/topic/max-comment-lenght/#post-613811)
 * I found this solution:
    [http://wordpress.org/support/topic/66084](http://wordpress.org/support/topic/66084)
 * I implemented and tested it, and it worked very well. Or so I thought. Just today,
   I received a comment which was longer than what I had set as the maximum length.
   Luckily, all my comments are held in moderation, but it drove me a little crazy.
 * It turns out the code only works if javascript is enabled in the commenter’s 
   web browser.
 * I suspect there should be a way around it with code that:
    1. detects whether
   the browser supports javascript a. if java enabled, uses the java version of 
   the comment box b. if java is not enabled, uses a text box with a set length 
   size.
 * My blog doesn’t get too many comments (just the occasional very long one), so
   I probably won’t get around to trying to write that code for a while.
 * Does anyone else want to give it a shot in the meantime?

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘max comment length’ is closed to new replies.

## Tags

 * [character](https://wordpress.org/support/topic-tag/character/)
 * [comment](https://wordpress.org/support/topic-tag/comment/)
 * [length](https://wordpress.org/support/topic-tag/length/)
 * [max](https://wordpress.org/support/topic-tag/max/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [juliannay](https://wordpress.org/support/users/juliannay/)
 * Last activity: [18 years, 3 months ago](https://wordpress.org/support/topic/max-comment-lenght/#post-613811)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
