Add “Allowed HTML Tags” Notice for Comments

This document is deprecated! The information on this page refers to a Thesis version that is now obsolete. Please visit the Thesis Docs for current documentation.

Place the following code in custom_functions.php:

function my_allowed_tags() {
	$allowed_tags = '<span class="allowed"><span>' . "\n";
	$allowed_tags .= '<em>You can use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes:</em> ';
	$allowed_tags .= allowed_tags() . "\n";
	$allowed_tags .= '</span></span>' . "\n";
	echo $allowed_tags;
}

add_action('thesis_hook_after_comment_box','my_allowed_tags');

Place the following code in custom.css, and modify as desired:

.custom	#commentform span.allowed span { 
	font-size: 1.0em; 
	line-height: 1.5em;
	padding: 0.25em 0.5em;
}
.custom	#commentform span.allowed { 
	display: block; 
	color: #807e70; 
	background: #f9f7e4; 
	border-style: none;
	margin-bottom: .75em;
}