Remove html codes from wordpress

by 3 replies
4
Hey guys,

I have a wordpress website and I want to remove this code under the "comment" area.

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>

How do I do this?

Here's the website: Uber Los Angeles - UBERTAILS.com
#website design #codes #html #remove #wordpress
  • You have two options:

    set this to your theme's functions.php

    add_filter( 'comment_form_defaults', 'remove_comment_form_allowed_tags' );
    function remove_comment_form_allowed_tags( $defaults ) {

    $defaults['comment_notes_after'] = '';
    return $defaults;

    }

    Or add this to your style.css at the top of it :

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


    Cheers !
    • [ 1 ] Thanks
  • Code:
    code {
            display: none;
     }
    this removes the "<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> " part

    the "you may have..." is going to be something like "#form-allowed-tags" or the like with the same command structure ( display none ). I don't have the theme you are using in my library so I cant get you a specific answer on that one


    • [ 1 ] Thanks
  • Cool! it worked! thanks guys!

Next Topics on Trending Feed