You are here: Computer Video TutorialWordpress TutorialRemoving “You may use these HTML tags and attributes”
Due to regular updates on WP, if you look for Twenty Eleven theme modification or customization tutorial, first of all, first check this post. Thanks.

Removing “You may use these HTML tags and attributes”

by Kimi on July 31, 2010

How to remove “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> ” in the comment box above “Post Comment” button of Twenty ten wordpress 3.

This tutorial is going to guide you how to get rid of the html code under the message box in twenty ten’s comment template. I did not edit or delete the code from wordpress 3 core files, but only hide it with the css code, because it works fine.

blog seo

The codes that we will remove.

blog seo

So here are the steps:
1. Login to your dashboard, go to Appearance/Editor and then look for stylesheet file, which is style.css.

style.css file is the red highlighted.

2. Open up, copy all the codes to a html editor and look for line 1081, this code should be there:

#respond .form-allowed-tags {
color: #888;
font-size: 12px;
line-height: 18px;
}

Under the: line-height: 18px; add this code:
display:none;
so the whole code will look like the following image:

The result code after you added "display:none"

3. Select all the code, paste back in to style.css. Do not forget to click “Update File”.

4. Your comment template should be clean by now.

Video Tutorial:

Subscribe new tips via Email:

Was the post helpful? Share it to help others with:

{ 78 comments… read them below or add one }

Cascd Morris August 14, 2010 at 10:07 am

Hi Dina. this tutorial is not working on my blog. Any other way to do this?
And one more thing, how did you insert ‘Notify me of followup comments via e-mail’ above submit button?
thanks..

Reply

Dina August 15, 2010 at 9:21 am

@Cascd Morris, Hi there,

I have checked your site and it seemed to work? or you mean another site?

The notify me for comment i use subscribe to comment plugin.

Hope it helps.

Reply

Cascd Morris August 15, 2010 at 3:10 pm

@Dina, thank you so much for the tutorial. its work actually after more than 5 minutes i remove the code..=)
And about the plugin, can you please give me the link? i have used the plugins but it place under my submit button…
Sorry for my English..=)

Reply

Dina August 16, 2010 at 8:10 am

@Cascd Morris, Sure :)

Here is the link: http://txfx.net/wordpress-plugins/subscribe-to-comments/

Or you can type subscribe to comment in plugins search box, it’s created by Mark Jaquith.

Good luck :)

Sean Mullins March 7, 2011 at 2:44 am

Hi

This didn’t work for me so I opened the following file in dreamweaver:

wp-include/comment-template.php

Went to line 1537

Changed it from this:

‘comment_notes_after’ => ” . sprintf( __( ‘You may use these HTML tags and attributes: %s’ ), ‘ ' . allowed_tags() . '‘ ) . ”,
to this:

‘comment_notes_after’ => ” . sprintf( __( ” ), ‘ ' . allowed_tags() . '‘ ) . ”,

Also, on line 1575 you can add a class to change the style of the ‘post comment’ button so my code now looks like this:

<input name="submit" type="submit" class="input-btn" id="” value=”" />

You simple add the class to the style.css.

Really hopes that helps some people!

Reply

Thomas Vanhoutte February 28, 2012 at 9:48 pm

Thanks a bunch!
I also removed the PHP code instead of the CSS code as stated in the article.

Reply

Daniel August 19, 2010 at 1:18 pm

Thank you so much! Been looking for this for hours. Awesome!

Reply

Trigun August 21, 2010 at 1:38 am

Hi, This tutorial works fine. However it only removes it on display. If you look on the view source of the page, the code is still there. Is there a way to remove it for both display and code?

Thanks in advance…

Reply

Dina August 21, 2010 at 7:04 am

@Trigun,

Yes, you can remove the code. It is in wp-includes folder, and then comments-template.php file and remove this line (see yellow highlighted image)

remove these line of codes

Reply

Caroline August 26, 2010 at 7:16 pm

Hi Dina – I’m using 2010 Weaver Theme so I’m not sure if this is the same process. Is there a simpler way to do this for someone who has no html experience and just learning WPress?
Thank You

Reply

Dina August 26, 2010 at 8:39 pm

@Caroline, Hello there

I have checked your site, and the tutorial above works with twenty ten.

For your site, you can add this code in “2010style.css” instead of style.css file. The method is still the same as above tutorial.

Code: #respond .form-allowed-tags {display:none}

Just copy and pasted the above highlighted code in the very bottom of “2010style.css” file from your dashboard and click “update file” refresh your blog it will show.

Cleaning browser cache might help in case it won’t show the result.

Let me know if helps.

Reply

Caroline August 27, 2010 at 1:33 pm

Hi Dina – thank you so much for this help – all done! I really do appreciate it. Your explanation was very simple. I am now following your RSS feeds and I will learn a lot from you I’m sure. Thanks again.

Reply

Dina August 27, 2010 at 3:19 pm

@Caroline, You’re most welcome!

I have checked your site, and it works, very nice feeling to know the post is useful Caroline!

Best regards.

Reply

itbdw.tk September 22, 2010 at 3:08 pm

Hi Dina
Thank you so much for this help !
I really appreciate it.
Your way was very simple.
Thanks again.

welcome to my site.
A boy from China.

Reply

Dina September 22, 2010 at 7:37 pm

You’re welcome!

Reply

Hidden object September 26, 2010 at 1:55 pm

Hi Dina.the same problem with me this tutorial is not working on my blog. Any other way to do this?

Reply

Dina September 26, 2010 at 3:25 pm

Hi there,

Any link to your site? because the URL you have pointed to blogspot and not using TwentyTen.

Reply

Mark October 19, 2010 at 11:32 am

Thanks for your help regarding this subject. Your advise worked at the different theme as well.

Reply

Kimi October 19, 2010 at 11:49 am

You’re most welcome Mark, glad it worked.

Thanks for commenting.

Reply

Jennifer November 12, 2010 at 5:44 am

Thank you so much for this info. I searched in numerous files for this but couldn’t find it. Your helpful post is SUPER appreciated!

Reply

Kimi November 12, 2010 at 6:07 am

Hello Jennifer!

You’re most welcome, and i am so happy that you found the post was useful!

Thank you for your nice words.

Reply

jhon brian November 17, 2010 at 10:11 am

Possibly the top blog that I read this year

Reply

Justin December 1, 2010 at 11:41 am

I have hidden the “you may use html blah blah blah” from the website (thanks) and have removed the line 1539 from the wp contents……comments template but still get the “you may use html” when ppl are linking direct pages back to their facebook profiles as i have a fan page. any thoughts whats missing ? i am using the twenty ten theme as well. Thanks for any help! J

Reply

Kimi December 2, 2010 at 6:46 am

Hi Justin,

I guess i have no idea with facebook profiles, never happened to me, sorry.

Reply

David December 2, 2010 at 5:35 am

Thanks. This may reduce the spam comments stopping bots to fetch the website by that content. Good stuff here.

Reply

Minette December 6, 2010 at 2:29 am

I followed your instructions and it didn’t work for my website. I was able to make it work the last time I did this. I don’t know what happened. Please help.

Thanks in advance,
Minette

Reply

Kimi December 6, 2010 at 5:55 am

Minette,

I have just checked your site, the “you may use..” text is gone.

Try to clean your browser’s cache.

I hope this helps.

Reply

Gulam Ali December 16, 2010 at 2:28 am

Thanks for the effort you took to expand upon this post so thoroughly.
Why valid html code is important to your web site’s search engine optimization efforts and consequent high rankings! Such invalid html codes… A single missing bracket in your html code can be the cause your web page cannot be found in search engines… Providentially, there are free services that allow you to check and fix the validity of your html codes

Reply

claudia January 3, 2011 at 2:38 pm

worked like a charm. thanks for that!

Reply

Kimi January 4, 2011 at 9:58 am

Claudia,

Most welcome! Happy to hear it worked for you.

Kind regards,

Kimi.

Reply

George January 8, 2011 at 5:38 pm

can’t find the line 1081 contact me on email please how can i remove it

Reply

Connie February 11, 2011 at 5:02 am

Hello I was wondering if I can do this same type of change for the theme Blue Taste 1.3 by Jabox. I get that same You may use these HTML tags and attributes: <a> <abbr> <acronym> <b> <blockquote> <cite> <code> <del> <em> <i> <q> <strike> <strong> in the comment box above Post Comment button. I really wanna get rid of it

Reply

Kimi February 11, 2011 at 7:31 am

Hi Connie!

Please try to add this code in style.css

.form-allowed-tags{display:none;}

I hope that helps

Reply

Connie February 11, 2011 at 5:57 pm

Nice you are a lifesaver. Thank you so much

Reply

Kimi February 14, 2011 at 7:49 am

Most welcome, Connie!

connie February 22, 2011 at 6:30 pm

I have a question at the top of my post I have the WWSGD plugin and when you click on the RSS feed link it directs you to a weird page how can I put in my RSS FEED link?

Reply

Kimi February 24, 2011 at 9:11 am

Hi connie,

That weird page is your feedburner feed account, it is what the most blog want, because by doing this, you will allow people to subscribe per email.
If you want to change that weird page to your normal feed page, then do not redirect that icon to your feedburner feed.

I hope this helps.

Justin February 14, 2011 at 4:36 am

Thanks for this information it worked perfectly. I copied and pasted
#respond .form-allowed-tags {display:none} at the very bottom of my ( style.css) and it removed the words. Thank You!!!

Reply

Dookon March 11, 2011 at 12:55 pm

Thanks a million, I’ve been spending almost a week to figure this out. Now it looks much cleaner than before!

Reply

bruce April 5, 2011 at 2:34 pm

my sytle.css looks nothing like the one in this example and the comment-template.php doesn’t have the same structure as the example above. I’m using the wordpress v3.0 and arras theme.

It’s starting to get on my lar lars now!

Any help would be great.

Reply

Kimi April 5, 2011 at 9:19 pm

Hey Bruce,

I am not familiar with arrass theme, nor ever used it.

I suggest you to ask the theme creator, Arrass is very popular theme, I am nearly sure, it has a support forum or something similar..

Nice blog you have by the way :-)

Thanks

Reply

Reny April 10, 2011 at 8:03 pm

Just add this code to you style.css file anywhere : )

#respond .form-allowed-tags {display:none;}

It’s worked for me right away : )
Good luck!

Reply

Udeshika May 3, 2011 at 5:35 am

Thanks, I could remove some HTML tags after reading this article

Reply

Victoria May 10, 2011 at 9:16 pm

The truth is that I’m afraid to do what you say, you’re sure to do all this not unconfigure anything? Sorry! is not wary! But need to know how sure you are, because I do not understand this thing!
I have no template Twenty Ten, mine is called “Coraline”, and has the same problem, as well as the template Evolve, among many others, every blog I see, has this error.

Reply

Kimi May 11, 2011 at 8:56 pm

Hi Victoria,

This tutorial works with Twenty Ten only, unless your theme has the exact same codes. If you use another themes, I suggest you to ask this matter to the theme support or developer.

Good luck.

Reply

Jane June 1, 2011 at 4:41 pm

I will try this tutorial in my site minimartjobs.com/ . I hope this works! Thank you for sharing this information!

Reply

Jessica June 6, 2011 at 5:56 pm

I do not have an area on my stylesheet with #respond or .form-allowed-tags…
The best I can find is an area with #commentform

I have a 2008 Metala Theme. Can you help me?

Reply

Kimi June 6, 2011 at 9:23 pm

Hey Jessica!

Looks like it has been fixed! Love your blog, as I am a mom myself :)

Good luck with your blog

Kind regards,

Kimi.

Reply

Rahnaj June 24, 2011 at 11:32 am

Is there some methods to remove html from edit themes?

Reply

lei June 27, 2011 at 9:18 am

thanks! it was very useful!! ur such a genius!!

Reply

ssk July 15, 2011 at 11:35 am

Is there some methods to remove html from edit themes?

Reply

elman August 17, 2011 at 3:28 am

Thanks for your info. Your blog is verygood.

Reply

sohman August 21, 2011 at 3:51 am

Thanks .. Creativity in the commentary

Reply

Annemarie Robbertse September 21, 2011 at 4:35 pm

Hello all – I’m having the same problem as you are, but I cannot find the line you are referring to (line1081) – I’m using Wordpress.co.za, Theme Suffusion. Please help? This is ‘n client’s website!!!

Thanks!

Annemarie Robbertse

Reply

Annemarie September 21, 2011 at 4:43 pm

My previous comment came back, so I’m resending?

Hello all – I’m having the same problem as you are, but I cannot find the line you are referring to (line1081) – I’m using http://www.wordpress.co.za, Theme Suffusion. Please help? This is ‘n client’s website!!!

Thanks!

Annemarie Robbertse

Reply

robert September 26, 2011 at 12:38 pm

thank you very much for this.
could you possibly explain (as a beginner to wordpress that i am) why the developers of twentyten do not add this line of code. I am asking this question to better understand the whole process; not because i have a sarcastic streak.
again thank you for saving me my sanity!
robert

Reply

jolin chen November 9, 2011 at 1:31 pm

cool post! very helpful… thanks for the great worrk.

Reply

Jessica November 9, 2011 at 1:33 pm

Hi Dina
Thank you so much for this help !
I really appreciate it.
I must interested more in these css files
It looks like i can change many things there
Ugh…it is so many things to learn

Reply

jack November 16, 2011 at 5:45 am

thanks for sharing,really very good

Reply

Eric December 27, 2011 at 6:11 pm

Worked like a charm! Thank you!

Reply

harshkumar December 30, 2011 at 1:22 am

i have post a wrong comment in wikipedia an now i want to remove this post from this site how can i remove my post plssss help.

Reply

Mind January 3, 2012 at 3:39 pm

Thank you so much!
I didn’t waste too much time. thanks to this post.

Reply

mauro January 30, 2012 at 1:38 am

Its really annoying, I’m just upset with this shi* The solution for me is to hide the comment box. Using Wordpress 3.2.1 + Thematic, 3 different browsers (no cache problem), I’d try all the solutions in this post more the solution from thematic forum. I change style.css in all possible themes in twentyten, twentyeleven, thematic, child theme, etc. Checking everything for hours. It was everything ok months ago, but I accepted a Wordpress update and the “form-allowed-tags” is back.

Reply

ojauy February 6, 2012 at 12:48 am

Thank you so much for this info great blog. I searched in numerous files for this but couldn’t find it. Your helpful post is SUPER appreciated!

Reply

Randall February 6, 2012 at 3:16 am

Thanks a bunch. I searched the web and tried various other methods but your method worked easily.

Reply

britain February 14, 2012 at 11:41 am

No, Google does not like this code, it will block your SEO if you use it.

Reply

Neena February 16, 2012 at 10:32 pm

Hi…. I have the CUDAZI theme and I don’t see anything in my style.css, can anybody help me, please? I have added code to remove the “posted on” “by” “posted in” in categories in my style.css, but nothing happens, seems like it’s not actually using the .css, what can I do?

Reply

Kimi February 17, 2012 at 6:23 am

Hi Neena,

If you don’t seem to have css editor, do you blog in wordpress.com? If yes, please see this post to see the difference: http://www.blog.web6.org/how-much-does-wordpress-cost/

If in wordpress.org, you should be able to access the css style of the theme, which is in the CUDAZI theme folder, and called style.css, or inside your dashboard, and find “Appearance” and then “Editor”.

Kimi

Reply

Neena February 17, 2012 at 3:37 pm

Thank you Kimi, you are a GODDESS. I now understand, will delete the things I dont want in my .php files, those one I can see…

Reply

Ellisa February 27, 2012 at 8:43 am

Thanks very much,Dina! I am really use it in my blog site! Can’t links in the comment box is a headache to many people! Haha.

Reply

Carla March 6, 2012 at 10:44 pm

Thanks so much for this! So easy!

Reply

John April 5, 2012 at 11:15 am

Brilliant article thanks! Seems to work perfectly well with the latest versions of wordpress as well (3.3)
Made the code a lot cleaner as mentioned and seems to have made life easier when trying to implement the comments form into side areas ect. (Had a nightmare with previous use of the normal code)

Reply

Omar April 24, 2012 at 8:44 pm

Excelent…¡¡¡ Thanks for the tip. Its works good.

Reply

Lulu Kemaludin May 16, 2012 at 12:03 am

You can generally use CSS to not display things like that. In your case adding the following to the CSS Inserts in the theme options should hide those tags.

HTML Code:
.form-allowed-tags {
display: none;
}

Reply

Bill May 24, 2012 at 4:25 am

Thanks Kimi.. this tips works good on my site

Reply

Tim July 3, 2012 at 5:44 pm

Hi Kimi,

Thankyou for your post here, it is exactly what I was looking for, I am in the process of setting up my new blog and if your know zilch about php like me, coding tutorials such as yours are extremely useful.

When I have time to write some content about Wordpress I will make certain to link to your blog post here.
All the best.
Tim.

P.S. Have you tried the Comment Luv plug-in? it can really help with your traffic and backlinks.

Reply

Kimi August 2, 2012 at 12:54 pm

Hello Tim,

I used to learn a bit of WordPress coding the past, but it seems that I don’t really have time now as my kids are growing LOL

I have also used comment luv plugin a few years ago, I agree it is a great plugin, but since I don’t have time to check my blog, I also don’t have time to check comments :(

I will use it once I have a lot of blogging time again.

I appreciate your visit

Kind regards

Kimi.

Reply

swapnil July 10, 2012 at 7:07 am

thanks a lot kimi, it was looking really buggy

Reply

Leave a Comment

Please use a name instead of blog name or SEO stuff, otherwise it will be deleted right away.

About checkbox → See more my post:how to get rid of spam bots in wordpress post.

Thank you for visiting, you're always welcomed to be here again!

Previous post:

Next post: