Remove html codes from wordpress

3 replies
  • WEB DESIGN
  • |
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
#codes #html #remove #wordpress
  • Profile picture of the author King Manu
    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 !
    {{ DiscussionBoard.errors[9589019].message }}
  • Profile picture of the author savidge4
    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


    Originally Posted by vryannn View Post

    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
    Signature
    Success is an ACT not an idea
    {{ DiscussionBoard.errors[9589021].message }}
  • Profile picture of the author vryannn
    Cool! it worked! thanks guys!
    {{ DiscussionBoard.errors[9596918].message }}

Trending Topics