WordPress disable anonymous comment by default but people hope to leave comments without offers their names or email addresses. Therefore, we write this tutorial to tell you how to hide name fields in WordPress comment form and enable anonymous comment on WordPress site.
WordPress comes with a comment functionality that allows readers to leave adjustment or advices for your posts. In order to prevent spam, WordPress forces users to enter the name and email address. However, many people don’t want to provide much personal information on the Internet in case it will be leaked to malicious persons. Thus, enabling anonymous comments can both encourage readers to comment on your site and protect the personal information for readers.
Replace Real Name with Nickname
As people want to anonymously comment because they don’t want to leak the real name, so you can encourage users to use a nickname to instead of the real name. By this way, people don’t need to fill their real name but they can still leave something through the comment, with which you can build an activated community for readers.
To remind readers that you enable anonymous comment, you can add the introduction above the comment form. However, you should note that the more anonymous comments add, the more spam add too.
Make Name and Email Fields Optionally
WordPress comment form includes four required fields – Name, Email, URL, and Comment. To allow anonymous comment, you can make the Name and Email fields optional so that readers can decide whether to fill in the Name and Email as they like.
It’s quite simple to achieve this goal. You can do this by configuring the comment settings under Settings -> Discussion settings. Scroll down the screen and find the Other Comment Settings, uncheck the box of “Comment author must fill out name and e-mail”. Besides, it’s better to uncheck the box of “Users must be registered and logged in to comment”.
Although you have unselected the checkboxes, readers don’t know this unless you tell them with obvious words. You can show a message that Name and Email fields are optional on your site. To achieve this, you are required to change the comment form by adding the below code into the functions.php file of the theme, which simply adds (*Optional) alongside the Name and Email fields. Please note the code line to remove the URL field, you can bypass it if you don’t want to remove the URL field.
Finally, the comment form presents like the below screenshot.
Enable Anonymous Comments with Plugins
If you are confusing with the above methods, you may consider using a helpful WordPress comment plugin to enable anonymous comments. Without codes needed, you can install the plugin and configure the basic settings. Here we list some useful comment plugins as the below.
- Cackle Comments: This plugin allows users to comment with their social network accounts, such as Google+, Facebook, Twitter, and more. It helps increase visitors from social networks and simplifies the comment process without the need to enter name and email.
- Disqus Comment System: You can install the Disqus comment system to replace the default WordPress comment form. It helps your comment to be indexable by search engines and comes with advanced features, like threaded comments and replies, aggregated comments and social mentions, full spam filtering, etc.