Today’s I am going to explain simple and easy steps to Remove the URL field from comment form from your WordPress website. You are a website owner or Web blogger and don’t want to display the website URL field under your blog posts, then please follow the bellow steps:
Go in your current activated WordPress theme folder and find the functions.php
page and open that page.
Step 1. Open your current theme file.
Step 2. After that open functions.php
file from your current activated theme folder and simply copy below code snippets and paste at the end of the file.
1 2 3 4 5 | function remove_comment_fields($fields) { unset($fields['url']); return $fields; } add_filter('comment_form_default_fields','remove_comment_fields'); |
Step 3. Save your file and you are done.
Now the URL field won’t show in the comments box under each post. see the below screenshot after adding the above code snippets in your functions.php file.
Do you like & share this article with your friends, and don’t forget to follow us on Facebook and Twitter to learn cool WordPress tutorials.
If you like FreeWebMentor and you would like to contribute, you can write an article and mail your article to [email protected] Your article will appear on the FreeWebMentor main page and help other developers.
Article Tags: Freebies, Tip and tricks, Tutorials, wordpress