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;}
add_action('thesis_hook_after_comment_box','
my_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

Originally posted 2012-05-16 03:37:31.

Check Also

Jetpack 2.8 is now with Markdown and Better Monitor Notifications

Jetpack the one of the most popular WordPress plugin has released a new version, jetpack …

4 comments

  1. Dear Alamgir Hossain Shemul, your website is awesome about SEO. Informative article & really helpful for newbie. Keep writing content. Without knowing knowledge no one can shine is life, so we have to gather our knowledge about website or blog or sites.

  2. How do we build seo for google regulations that now ….??? Are Still Above Ways to function

  3. However, if you were to buy that list, then you would need a quick return on this investment and not just to recoup the money it cost to gain these personal details.

  4. Thanks Hossain for sharing this code.

Leave a Reply

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

*