{"id":39552,"date":"2014-12-22T10:51:24","date_gmt":"2014-12-22T15:51:24","guid":{"rendered":"http:\/\/www.templatemonster.com\/help\/?p=39552"},"modified":"2017-07-17T05:17:41","modified_gmt":"2017-07-17T09:17:41","slug":"wordpress-how-to-allow-users-to-post-anonymous-comments","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/wordpress-how-to-allow-users-to-post-anonymous-comments.html","title":{"rendered":"WordPress. How to allow users to post anonymous comments"},"content":{"rendered":"<p>\r\n<\/p>\r\n<p> This tutorial will show you how to allow users to post anonymous comments in WordPress. <\/p>\r\n<p><a href=\"http:\/\/www.youtube.com\/watch?v=YhKhtruA1sU?width=1280&amp;height=720\" rel=\"prettyPhoto\">WordPress. How to allow users to post anonymous comments<\/a><\/p>\r\n<div class=\"inline-banner\">\r\n<a href=\"https:\/\/www.templatemonster.com\/service-center\/\">\r\n<img src=\"\/help\/files\/banners\/inline\/Banner-3-(835-x100).jpg\" \/>\r\n<\/a>\r\n<\/div>\r\n<p>The best way to allow anonymous comments in WordPress while limiting comment spam is by encouraging users to use a pseudonym or a nickname instead of their real name.<\/p>\r\n<p>This allows you to build a community while still allowing users to be anonymous. Users will still have to provide an email address, but most users who want to leave anonymous comments have separate emails for this anyways.<\/p>\r\n<p>First thing you need to do is go to <strong>Settings &raquo; Discussion<\/strong> and uncheck the box next to <em>&#8216;Comment author must fill out name and e-mail&#8217;<\/em> option. Now you need to save your changes, and your site will be ready to accept comments without name and email address:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2014\/10\/screenshot12.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2014\/10\/screenshot12-300x268.jpg\" alt=\"screenshot1\" width=\"300\" height=\"268\" class=\"aligncenter size-medium wp-image-39554\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/10\/screenshot12-300x268.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/10\/screenshot12-150x134.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/10\/screenshot12.jpg 895w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<p>Simply removing this checkbox wouldn&#8217;t tell your users that they can leave comments without providing a name or email address.<\/p>\r\n<p>This means, that we will need to apply changes to the code.<\/p>\r\n<p>You can follow these steps: <\/p>\r\n<ol>\r\n<li>Enter admin panel.<\/li>\r\n<li>Choose <strong>Appearence<\/strong> and after that <strong>Editor<\/strong> tab.<\/li>\r\n<li>Find <strong>comments.php<\/strong> file.<\/li>\r\n<li>Open it up:<\/li>\r\n<\/ol>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2014\/10\/screenshot21.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2014\/10\/screenshot21-300x90.jpg\" alt=\"screenshot2\" width=\"300\" height=\"90\" class=\"aligncenter size-medium wp-image-39553\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/10\/screenshot21-300x90.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/10\/screenshot21-150x45.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/10\/screenshot21-1024x307.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/10\/screenshot21.jpg 1920w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<p>After opening the file, locate there following code:<\/p>\r\n<pre class=\"brush:php\">\r\n&lt;?php else : ?&gt;\r\n&lt;p class=&quot;field&quot;&gt;&lt;input type=&quot;text&quot; name=&quot;author&quot; id=&quot;author&quot; value=&quot;&lt;?php echo theme_locals(&quot;name_comment&quot;); ?&gt;&lt;?php if ($req) echo '*'; ?&gt;&quot; onfocus=&quot;if(this.value=='&lt;?php echo theme_locals(&quot;name_comment&quot;); ?&gt;&lt;?php if ($req) echo '*'; ?&gt;'){this.value=''}&quot; onblur=&quot;if(this.value==''){this.value='&lt;?php echo theme_locals(&quot;name_comment&quot;); ?&gt;&lt;?php if ($req) echo '*'; ?&gt;'}&quot; size=&quot;22&quot; tabindex=&quot;1&quot; &lt;?php if ($req) echo &quot;aria-required='true'&quot;; ?&gt; \/&gt;&lt;\/p&gt;\r\n&lt;p class=&quot;field&quot;&gt;&lt;input type=&quot;text&quot; name=&quot;email&quot; id=&quot;email&quot; value=&quot;&lt;?php echo theme_locals(&quot;email_comment&quot;); ?&gt;&lt;?php if ($req) echo '*'; ?&gt;&quot; onfocus=&quot;if(this.value=='&lt;?php echo theme_locals(&quot;email_comment&quot;); ?&gt;&lt;?php if ($req) echo '*'; ?&gt;'){this.value=''}&quot; onblur=&quot;if(this.value==''){this.value='&lt;?php echo theme_locals(&quot;email_comment&quot;); ?&gt;&lt;?php if ($req) echo '*'; ?&gt;'}&quot; size=&quot;22&quot; tabindex=&quot;2&quot; &lt;?php if ($req) echo &quot;aria-required='true'&quot;; ?&gt; \/&gt;&lt;\/p&gt;\r\n&lt;p class=&quot;field&quot;&gt;&lt;input type=&quot;text&quot; name=&quot;url&quot; id=&quot;url&quot; value=&quot;&lt;?php echo theme_locals(&quot;website_comment&quot;); ?&gt;&quot; onfocus=&quot;if(this.value=='&lt;?php echo theme_locals(&quot;website_comment&quot;); ?&gt;'){this.value=''}&quot; onblur=&quot;if(this.value==''){this.value='&lt;?php echo theme_locals(&quot;website_comment&quot;); ?&gt;'}&quot; size=&quot;22&quot; tabindex=&quot;3&quot; \/&gt;&lt;\/p&gt;\r\n<\/pre>\r\n<p>And delete it.<\/p>\r\n<p>Please make sure that you delete the correct part of the code. You can make a copy of the file, so that you can recover the code.<\/p>\r\n<p>Save the file and reload the page.<\/p>\r\n<p>Thank you for paying attention to our tutorial.<\/p>\r\n<p>Feel free to check the detailed video tutorial below:<\/p>\r\n<p><a href=\"http:\/\/www.youtube.com\/watch?v=YhKhtruA1sU?width=1280&amp;height=720\" rel=\"prettyPhoto\">WordPress. How to allow users to post anonymous comments<\/a>\r\n<\/p>\r\n<\/p>\r\n<p><\/p>","protected":false},"excerpt":{"rendered":"<p>This tutorial will show you how to allow users to post anonymous comments in WordPress.<\/p>\n","protected":false},"author":63,"featured_media":41793,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[728],"tags":[1788,874,2405],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/39552"}],"collection":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/users\/63"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=39552"}],"version-history":[{"count":1,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/39552\/revisions"}],"predecessor-version":[{"id":82046,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/39552\/revisions\/82046"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media\/41793"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=39552"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=39552"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=39552"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}