WordPress.org

Support

Support » Themes and Templates » Remove "website" field from comment form in Ipress theme

Remove "website" field from comment form in Ipress theme

  • Hello,
    Please help me, how to remove “website” field from comment form in Ipress theme? i checked comment.php, edit-comments.php, edit-form-advanced.php, edit-form-comment.php files, but no didnt find any relevant code.
    Thank you

Viewing 2 replies - 1 through 2 (of 2 total)
  • Put the following in your functions.php at the end before ‘?>’

    function alter_comment_form_fields($fields){
        $fields['url'] = '';  //removes website field
    
        return $fields;
    }
    
    add_filter('comment_form_default_fields','alter_comment_form_fields');

    It works. Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Remove "website" field from comment form in Ipress theme’ is closed to new replies.