How To Show “Allowed HTML Tags” Notice for Comments in Thesis Theme

You may have noticed this thing below the comment section in my blog or any other website. This encourages the user to write a comment in your post with those HTML tags.

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>

Thesis is my favorite theme for blogging as it is SEO optimized and huge chance to customize also. To show the “Allowed HTML Tags” Notice for Comments just copy the code and paste it to respective place.

Show “Allowed HTML Tags” Notice for Comments:

How To Show “Allowed HTML Tags” Notice for Comments in Thesis Theme

Step 1: Copy the below code and paste it to custom_functions.php The best way to do this is to use a FTP  client, i usually prefer Filezilla.

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

Step 2: Copy and paste the following code in Custom.css  and modify the as your wish. To modify you can use Firebug plugin in Firefox.

.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;

Coding Help: Diythemes

Backup Code

Leave a Reply

Your email address will not be published. Required fields are marked *