Comments form

Viewing 3 posts - 1 through 3 (of 3 total)
  • #6659
    Rene
    Participant

    Hi, Fist off, love this theme – really has great functionality built in.

    I’m struggling with a few things.

    In the comments section I’d like to remove:

    You may use these HTML tags and attributes: a href ” title =”” > < abbr title="" ( etc code follows )

    Where can I find this and how can I remove it? (I've created and am using a child theme for Pinboard)

    I've checked comments.php file ( as well as others) which refers to: comments_form — but I don't see that anywhere.

    Thanks for the help!

    • This topic was modified 12 years, 3 months ago by Rene.
    #6690
    Daniel Tara
    Keymaster

    That output is made by code. You’ll have to create a function to override it. Here is an example:

    function pinboard_comment_form_defaults( $defaults ) {
    	$defaults['comment_notes_after'] = '';
    	return $defaults;
    }
    
    add_filter( 'comment_form_defaults', 'pinboard_comment_form_defaults' );
    #6712
    Rene
    Participant

    Thank you, that worked like a charm!

    For anyone else wanting to do the same:
    copy the above code and paste in your child theme’s functions.php file.
    This will override and remove the code/tags area after the comment box.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.