WordPress.org

Forums

Remove "website" field from comment form in Ipress theme (3 posts)

  1. mepoooo
    Member
    Posted 2 years ago #

    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

  2. illuminatus7
    Member
    Posted 2 years ago #

    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');
  3. mepoooo
    Member
    Posted 2 years ago #

    It works. Thank you.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.