• Currently, WP 1.5 displays all commenting form errors in an empty un-themed page.
    For example, the usual comment message “Error: please fill the required fields (name, email).”
    Is it possible to have them displayed in a themed page ?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator James Huff

    (@macmanx)

    I don’t think so. The error is generated by wp-comments-post.php, which has no tie-in with the theme files. You could, however, open wp-comments-post.php, find the error, and do your best to style it from within the file. As long as you place something like “(required)” next to the fields, only spam bots and people who can’t read instructions should see this error.

    Thread Starter sakis

    (@sakis)

    Hmm, I don’t like error messages appear in empty pages, it’s too “amateurish” way to trap such errors.
    I will write a js form handler to catch this.

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

The topic ‘Commenting error messages diplaying in a theme.’ is closed to new replies.