WP Inline Comment Errors plug-in
Default Error Listing HTML
In the default configuration, the plug-in automatically generates the following HTML for the error message list.
You can refer to the styles in this example code to style the error list accordingly. The plug-in will use the
comment_form_top action to display the error list inbetween the title of the form and the first field of the form.
To make things more convenient for the user, the plug-in adds code that automatically scrolls the browser down the page to the comment form. This helps avoid confusion where, after the page reloads, the user does not initially see the error message because it off screen.
The plug-in adds an anchor tag named ‘goto_error_message’ before the title of the form using the WordPress
comment_form_before action. This will be the part of the web page that the browser automatically scrolls to.
The plug-in also adds ‘goto_error_message’ as a fragment identifier to the redirect url so the browser will automatically scroll to the position of the comment form and the user will immediately see the errors.
You can customize the error list display and also change the fragment identifier with the plug-in functions. Follow the links in the sidebar menu for more information.