{"id":18474,"date":"2020-01-21T15:21:40","date_gmt":"2020-01-21T20:21:40","guid":{"rendered":"https:\/\/www.boldgrid.com\/support\/?p=18474"},"modified":"2021-08-12T14:10:26","modified_gmt":"2021-08-12T18:10:26","slug":"how-to-remove-the-allowed-tags-section-for-comments","status":"publish","type":"post","link":"https:\/\/www.boldgrid.com\/support\/wordpress-tutorials\/how-to-remove-the-allowed-tags-section-for-comments\/","title":{"rendered":"How to Remove the Allowed Tags Section for Comments"},"content":{"rendered":"<!DOCTYPE html PUBLIC \"-\/\/W3C\/\/DTD HTML 4.0 Transitional\/\/EN\" \"http:\/\/www.w3.org\/TR\/REC-html40\/loose.dtd\">\n<?xml encoding=\"utf-8\" ?><html><body><p>The Allowed Tags in the Comment form lets your users know what HTML tags are available to help create more verbose and rich comments on your website.&nbsp;But sometimes you do not want to show users this information and would prefer to hide it from view. This guide demonstrates how to remove that section.<\/p>\n<p>The best way to hide that message is to use the <a href=\"https:\/\/www.boldgrid.com\/support\/boldgrid-themes\/how-to-use-the-custom-css-editor\/\">custom CSS<\/a> option available in your website&rsquo;s Customizer. Navigate to&nbsp;<strong>Customize -&gt; CSS\/JS Editor<\/strong>.<\/p>\n<p>Paste the following code snippet into your&nbsp;<strong>Custom Theme CSS, <\/strong>which&nbsp;will target the Allowed Tags section in your comment form and hide it on your pages.<\/p>\n<pre>#commentform .form-allowed-tags,\r\n#commentform .alert {\r\n    display: none;\r\n}\r\n<\/pre>\n<p><a href=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2020\/08\/hide-comment-allowed-tags.gif\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-26048\" src=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2020\/08\/hide-comment-allowed-tags.gif\" alt=\"Animation of removing the allowed tags field with Custom CSS\" width=\"993\" height=\"639\"><\/a><\/p>\n<p>Congratulations, you now know how to hide the Allowed Tags notice on your comment form!<\/p>\n<\/body><\/html>\n","protected":false},"excerpt":{"rendered":"<p>The Allowed Tags in the Comment form lets your users know what HTML tags are available to help create more verbose and rich comments on your website.&nbsp;But sometimes you do not want to show users this information and would prefer to hide it from view. This guide demonstrates how to remove that section. The best [&hellip;]<\/p>\n","protected":false},"author":880,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"bgseo_title":"","bgseo_description":"","bgseo_robots_index":"index","bgseo_robots_follow":"follow","footnotes":""},"categories":[151],"tags":[],"class_list":["post-18474","post","type-post","status-publish","format-standard","hentry","category-wordpress-tutorials"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/posts\/18474","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/users\/880"}],"replies":[{"embeddable":true,"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/comments?post=18474"}],"version-history":[{"count":4,"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/posts\/18474\/revisions"}],"predecessor-version":[{"id":41678,"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/posts\/18474\/revisions\/41678"}],"wp:attachment":[{"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/media?parent=18474"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/categories?post=18474"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/tags?post=18474"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}