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.

You may use these HTML tags and attributes
Get rid of the information about allowed HTML tags and attributes

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.

.form-allowed-tags{
display:none;
}

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!

Share
12 Comments

Leave a Reply