Removing “You may use these HTML tags and attributes”

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.

The codes that we will remove.

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:

Comments

  1. Cascd Morris says

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

    • says

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

    • Sean Mullins says

      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!

  2. says

    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…

    • says

      @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

  3. Caroline says

    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

    • says

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

  4. Caroline says

    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.

    • says

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

  5. Jennifer says

    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!

  6. Justin says

    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

  7. Minette says

    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

  8. says

    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

  9. says

    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

  10. Justin says

    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!!!

  11. Dookon says

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

  12. says

    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.

    • says

      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

    • says

      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!

  13. Victoria says

    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.

    • says

      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.

  14. Jane says

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

  15. says

    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?

    • says

      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.

  16. says

    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

  17. says

    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

  18. robert says

    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

  19. says

    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

  20. harshkumar says

    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.

  21. mauro says

    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.

  22. ojauy says

    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!

  23. Neena says

    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?

      • Neena says

        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…

  24. Ellisa says

    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.

  25. says

    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)

  26. says

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

  27. says

    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.

    • says

      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.

Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">