Remove url from comment form

I am using newspaper theme.
I want to remove url section from the comment form.
I have tried many things but not succeeded.
Can anyone tell me how to do this?

Add below code directly in the theme functions.php bottom line.

// Remove Comment URL Field
add_filter('comment_form_default_fields','generate_disable_comment_url');
function generate_disable_comment_url($fields) {
    unset($fields['url']);
    return $fields;
}
2 Likes

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.