Title: Custom Comment Error Message
Last modified: August 19, 2016

---

# Custom Comment Error Message

 *  [sarthemaker](https://wordpress.org/support/users/sarthemaker/)
 * (@sarthemaker)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/custom-comment-error-message/)
 * I am creating a wordpress theme, and I want to add a custom error message for
   when a user is adding a comment. Right now, if the user leaves the comment field
   blank it will take them to a blank page saying they must write a comment. Is 
   there a way to redirect to the comments page with an error variable set in the
   title bar?

The topic ‘Custom Comment Error Message’ is closed to new replies.

## Tags

 * [comment](https://wordpress.org/support/topic-tag/comment/)
 * [custom](https://wordpress.org/support/topic-tag/custom/)
 * [redirect](https://wordpress.org/support/topic-tag/redirect/)
 * [return](https://wordpress.org/support/topic-tag/return/)
 * [variable](https://wordpress.org/support/topic-tag/variable/)

 * 0 replies
 * 1 participant
 * Last reply from: [sarthemaker](https://wordpress.org/support/users/sarthemaker/)
 * Last activity: [16 years, 3 months ago](https://wordpress.org/support/topic/custom-comment-error-message/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
