July 3, 2025

12 thoughts on “How to remove allowed html tags and attributes from beneath the comment field in WordPress?

  1. Everyone who runs a website should read this post. I have built many sites over the years, and never knew how that the html code for anchor text could be removed. Thanks.

  2. I help administer a WP website that uses the Chameleon Theme and that code kept showing up in the comments section. It was very frustrating trying to figure out where that code was located and how to get rid of it. It wasn’t in the Comments.php in the Editor. Exactly where that code is located within the theme would be nice to know and nice to be able to just remove it or hide it. This information provided above fixed my problem and I want to say THANK YOU…THANK YOU…THANK YOU!!!
    As soon as I inserted that code
    .form-allowed-tags{
    display:none;
    }
    into the Chameleon: Stylesheet (style.css), that „You may use these HTML tags and attributes: ” was gone from the website comments section.

    Thank you so very much and I would advise others that have this problem to give this a try. I see that code on many other WordPress sites. The WordPress people should be fixing that problem when they do their updates!

  3. thank you very useful article for me. It helped me greatly and finally I was able to remove those attribution stuff in WordPress!

  4. to add to the confusion:
    http://codex.wordpress.org/Function_Reference/comment_form

    the allowed html tag list (with the corresponding css class) comes directly from the comment_form() code.
    if you can find where the comment_form() is called (probably comments.php), you can change it there to remove the ‘comment_notes_after’.

    there is no need for the theme to have this class anywhere in the css files.
    if you want to use it, add it to the usual css file – in arras this is user.css.

  5. Thank you so much! When I looked up how to fix this issue everyone had very complicated solutions that as a person completely new to WordPress, I just couldn’t understand!

Leave a Reply