WordPress.org

Ready to get started?Download WordPress

Forums

raindrops
[resolved] Remove Information From Under Comments (4 posts)

  1. Submersed
    Member
    Posted 1 year ago #

    Hi, I need to remove this text from under the comments:

    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>

    Can you please point me to the .php file and code I need to modify.

    Thank You,

  2. nobita
    Member
    Theme Author

    Posted 1 year ago #

    Hi Submersed

    Please try below code.

    functions.php add first line <?php before.

    <?php
    	add_filter( 'comment_form_defaults', 'my_remove_comment_notes_after' );
    	function my_remove_comment_notes_after( $default ){
    	/*
    	 * form-allowed-tags will be removed
    	 *
    	 */
    		$default['comment_notes_after'] = '';
    		return $default;
    	}
    ?>

    Thank you.

  3. Submersed
    Member
    Posted 1 year ago #

    Thanks, worked perfectly.

  4. kashmier
    Member
    Posted 11 months ago #

    Thanks for this one, it worked perfect. Just to make it clear when reading. ADD it as the very first line. Do not delete anything.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags

No tags yet.