• Resolved Mali1988

    (@mali1988)


    Hello,

    I need to remove this text `” You may use these HTML tags and attributes: <a href=”” title=””> <abbr title=””> <acronym title=””> <b>
    <blockquote cite=””> <cite> ` <del datetime=””> <i> <q cite=””> <strike> ” from the comments in my blog.
    I tried all the old tricks of adding this to function.php:</p>
    <p>add_filter(‘comment_form_defaults’, ‘remove_comment_styling_prompt’);
    function remove_comment_styling_prompt($defaults)
    $defaults[‘comment_notes_after’] = ”;
    return $defaults;</p>
    <p>and this to style sheet:</p>
    <p>#form-allowed-tags {
    display:none; }</p>
    <p>I cannot find the command for this anywhere, and I have looked!
    Here’s a link:
    https://www.marketsandpeople.com/mutual-advantage-marketing
    `
    The theme is Simvance.<br />
    Thank you!</strong></em>

Viewing 10 replies - 1 through 10 (of 10 total)
  • Clayton James

    (@claytonjames)

    This works perfectly on my copy of Simvance when I place it at the very bottom of the style sheet:

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

    It should be a class selector rather than a div ID.

    Thread Starter Mali1988

    (@mali1988)

    why wouldn’t it be working for me? Do I need to have some sort of wait period after updating?

    PS-I don’t really know what you mean when you say class selector or div ID. I can’t really code, just use google really well (usually).

    Clayton James

    (@claytonjames)

    Change this

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

    To this

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

    Note the difference between the . (dot) and the # (number) symbol

    If you want to permanently remove it rather than just hide it, put this in your theme’s functions.php file:

    add_filter( 'comment_form_defaults', 'remove_comment_form_allowed_tags' );
    function remove_comment_form_allowed_tags( $defaults ) {
    
    	$defaults['comment_notes_after'] = '';
    	return $defaults;
    
    }
    DanceInTheRain

    (@danceintherain)

    Hi!

    THANKS so much for your instructions. I would like to permanently remove it however do not know where to insert the filter & do not want to mess anything up. I have pasted the Theme details below. Kindly advise me exactly where to insert the code.

    Thank you,

    Josephine

    [ Two thousand nine hundred and sixty lines of code moderated. For that many lines of code please use pastebin.com instead. ]

    Clayton James

    (@claytonjames)

    Put this at the very bottom of the functions.php file in the twentythirteen theme.

    add_filter( 'comment_form_defaults', 'remove_comment_form_allowed_tags' );
    function remove_comment_form_allowed_tags( $defaults ) {
    
    	$defaults['comment_notes_after'] = '';
    	return $defaults;
    
    }

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

    This one is the easiest method of all ??

    thanks….

    Hey guys so which solution is the best and easiest? Where should I put the codes you have given here?

    Thanks

    ok ok ok ok ok goot ooit

    As ClaytonJames said:

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

    And

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

    What theme doesn’t seem to matter.
    I use the popular customizable theme Suffusion theme. The first post mentions simvance. And another a twentythirteen theme. So this doesn’t seem to matter.

    The extra code goes in the stylesheet (Stylesheet (style.css). Add it on the bottom of the page below the last line of code. Probably most clean and not interfearing. Find the right document in Dashboard –> Appearance –> Editor

    This code is actually a switch.
    Tags message below comments ON (have a “#”)

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

    Tags message below comments OFF (have a “.” dot)

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

    Some Google search words

    So this is how to remove delete this message below comment comments or bring it back.

    You may use these HTML tags and attributes: <abbr title=””> <acronym title=””> <b>

    <cite> <del datetime=""> <em> <i> <q cite=""> <strike> <strong></strong></em>

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Remove "You may use these HTML tags…" from comments’ is closed to new replies.