How to remove allowed html tags and attributes from beneath the comment field in WordPress?
On a blog packed with information you only want the necessary information to be visible. If you have blogged for a while you have probably noticed that very few people add any HTML tag or attribute to their comments (except from spammers), so why keep the information about allowed HTML tags and attributes beneath the comment field visible?
If you want to remove the text displaying the allowed tags, HTML code and attributes from your WordPress site it can easily be done, but you have to manually edit the source code and remove the code. Where this code can be found might differ from theme to theme, but in general you will succeed in removing the information text if you follow these steps.
Remove the information about allowed HTML codes in WordPress
I have read lots of different articles on this topic, and it might as I mentioned earlier differ a bit from theme to theme, but what we have added to our source code here at How To Blog Info is the following code.
This code was added to the bottom of the style.css. It made the following text disappear within seconds: „You may use these HTML tags and attributes: <a href=”” title=””> <abbr title=””> <acronym title=””> <b> <blockquote cite=””> <cite> <code> <del datetime=””> <em> <i> <q cite=””> <strike> <strong>”
If you want that text to be removed, try adding the code and hopefully it will work for you as well. In case it doe
Since I removed the text here in this blog I thought I should try it in another site I run using Pagelines WordPress theme. I added the code to the custom code space in the Pagelines theme and saved. I visited the site again, but no changes could be seen. Then I remembered that I use Quick Cache on the site and quickly deleted the cache. After deleting the cache it still did not work. Then I waited some minutes and I deleted the cache again, and then it started to work. So, use some patience, and hopefully it will work for you as well!
How to make cool boxes with “join my mailing list”?
How to use Duplicator to move an entire WordPress page?
How to make manual changes to your WordPress footer?
Brother just inputReply
your style.css file any position you can do it.
to add to the confusion:
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.
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!Reply
Thanks for the code, just implemented in my blog and its working absolutely fine.Reply
Clear cut info with code , Thanks for sharing this infoReply
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.
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
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!
Need help how can i allow user to use fb or twitter to comment on page and enable for all users !!!
thank you for your very useful article and add insight to my own
thank you very useful article for me. It helped me greatly and finally I was able to remove those attribution stuff in WordPress!
OOh, i did not know it.