Anvar Logo
01 / 01
Anvar Logo +91 808 999 0405

How to Remove the website (URL) filed from comment form

You can simply remove the website field from the WordPress website. all you need to login to your wordpress admin panel your-website.com/wp-admin.
Go in your current activated wordpress theme folder and find the functions.php page and open that page.
1. Open your current theme file in your-website.com/wp-admin/theme-editor.php
2. After open functions.php page at the end of the list of  file simply copy below code and paste.

function remove_comment_fields($fields) {
 unset($fields['url']);
 return $fields;
 }
 add_filter('comment_form_default_fields','remove_comment_fields');
 3. Save your file and you are done.

Now the website (URL) field wont show in the comments box under each post.

by anvar
Published : Apr , 20

Post a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.