Notification if Comment Author Field is left empty. E.g. change input border colour

I am having a comment section on my website. The author comment field is required. Any idea how to display a notification for a user if author field is left empty after submitting the comment? Something else than wp_die ?

What I would like to have is for example: change comment field border colour to red and say: ‘please, write a name.’

Read more here:: Notification if Comment Author Field is left empty. E.g. change input border colour

Leave a Reply

Your email address will not be published. Required fields are marked *