Title: comments: customizing error messages
Last modified: August 18, 2016

---

# comments: customizing error messages

 *  [oerdec](https://wordpress.org/support/users/oerdec/)
 * (@oerdec)
 * [21 years, 5 months ago](https://wordpress.org/support/topic/comments-customizing-error-messages/)
 * Hi all,
    whenever somebody doesnÂ´t fill out all required fields when posting
   a comment an error message appears. ThatÂ´s good but I donÂ´t like the way. The
   messages come from _die_ statements in wp-comments-post.php. They appear on a
   new white page. Is there a solution to show these errors inside the normal page?
   oerdec

Viewing 1 replies (of 1 total)

 *  Thread Starter [oerdec](https://wordpress.org/support/users/oerdec/)
 * (@oerdec)
 * [21 years, 5 months ago](https://wordpress.org/support/topic/comments-customizing-error-messages/#post-120560)
 * I havenÂ´t tried it but maybe one solution is to replace _die_ statements with
   _echo_Â´s and then build the template around wp-comments-post.php.
    Or create
   javascript location.href with messages as variables.

Viewing 1 replies (of 1 total)

The topic ‘comments: customizing error messages’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [oerdec](https://wordpress.org/support/users/oerdec/)
 * Last activity: [21 years, 5 months ago](https://wordpress.org/support/topic/comments-customizing-error-messages/#post-120560)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
