Add “Allowed HTML Tags” Notice for Comments

Applies to Version(s): Thesis 1

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 <acronym title="HyperText Markup Language">HTML</acronym> 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;
}