HummingbirdUK main logo

Coding solutions to business problems

About us

We use code to create solutions to business challenges, bottle-necks and headaches.

If you think your business has a problem that can be solved through code, we are happy to chat things through without any obligation.

Get in touch

HTML tags and attributes in Wordpress

Home / Blog / HTML tags and attributes in Wordpress

Written by Giles Bennett

Below the comments box in Wordpress (on this site and on most others) is a bit of guidance which says something along the lines of :

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>

You may not like having them - so if you want to remove them, there's a quick and easy way to do so. Simple find your theme's functions.php file (which will be in the folder public_html/wp-content/themes/yourtheme/) and add the following to it, at the bottom, before the closing php (?>) tag :

function mytheme_init() {

function mytheme_comments_form_defaults($default) {
	return $default;

Save a backup copy of the original functions.php just in case, then upload the new one and voila - should be gone.

Author : Giles Bennett

About the author

Giles Bennett built his first website in 1996, and is old enough to miss Netscape Navigator. Initially a lawyer, he jumped ship to IT in 2008, and after 5 years as a freelancer, he founded HummingbirdUK in 2013. He can be reached by email at