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.
So here are the steps:
1. Login to your dashboard, go to Appearance/Editor and then look for stylesheet file, which is style.css.
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:
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:
Hi Kimi. 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..
@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.
@Kimi, 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..=)
@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 🙂
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!
Thanks a bunch!
I also removed the PHP code instead of the CSS code as stated in the article.
Thank you so much! Been looking for this for hours. Awesome!
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…
@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)
Hi Kimi – 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
@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.
Hi Kimi – 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.
@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.
Hi Kimi
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.
You’re welcome!
Hi Kimi.the same problem with me this tutorial is not working on my blog. Any other way to do this?
Hi there,
Any link to your site? because the URL you have pointed to blogspot and not using TwentyTen.
Thanks for your help regarding this subject. Your advise worked at the different theme as well.
You’re most welcome Mark, glad it worked.
Thanks for commenting.
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!
Hello Jennifer!
You’re most welcome, and i am so happy that you found the post was useful!
Thank you for your nice words.
Possibly the top blog that I read this year
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
Hi Justin,
I guess i have no idea with facebook profiles, never happened to me, sorry.
Thanks. This may reduce the spam comments stopping bots to fetch the website by that content. Good stuff here.
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
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.
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
worked like a charm. thanks for that!
Claudia,
Most welcome! Happy to hear it worked for you.
Kind regards,
Kimi.
can’t find the line 1081 contact me on email please how can i remove it
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
Hi Connie!
Please try to add this code in style.css
.form-allowed-tags{display:none;}
I hope that helps
Nice you are a lifesaver. Thank you so much
Most welcome, Connie!
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?
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.
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!!!
Thanks a million, I’ve been spending almost a week to figure this out. Now it looks much cleaner than before!
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.
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
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!
Thanks, I could remove some HTML tags after reading this article
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.
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.
I will try this tutorial in my site minimartjobs.com/ . I hope this works! Thank you for sharing this information!
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?
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.
Is there some methods to remove html from edit themes?
thanks! it was very useful!! ur such a genius!!
Is there some methods to remove html from edit themes?
Thanks for your info. Your blog is verygood.
Thanks .. Creativity in the commentary
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
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
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
cool post! very helpful… thanks for the great worrk.
Hi Kimi
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
thanks for sharing,really very good
Worked like a charm! Thank you!
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.
Thank you so much!
I didn’t waste too much time. thanks to this post.
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.
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!
Thanks a bunch. I searched the web and tried various other methods but your method worked easily.
No, Google does not like this code, it will block your SEO if you use it.
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?
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: https://www.wpvidz.com/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
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…
Thanks very much,Kimi! I am really use it in my blog site! Can’t links in the comment box is a headache to many people! Haha.
Thanks so much for this! So easy!
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)
Excelent…¡¡¡ Thanks for the tip. Its works good.
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;
}
Thanks Kimi.. this tips works good on my site
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.
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.
thanks a lot kimi, it was looking really buggy