There are two ways to remove WordPress default website URL field in comment form from each article page. One by using plugins and other by adding a small snippet code in function.php file.
As WordPress speed and optimization are our top priorities in maintaining WP blogs, we will be using the second method of adding short snippet code in function.php file in our applied themes. Using a plugin to execute this function will impact of preformance directly. So its always recommended to use less number of plugins.
Adding code snippet is pretty easy, below are steps to follow:
Note: Please note that function.php files is very critical file in WordPress. If anything goes wrong then your website will be down. So make sure to get a back of files that are being edited.
- Login to WordPress blog
- Go to Dashboard
- Click on Appearance tab from left pane.
- Click on Edit under Appearance tab.
- Select theme to be edited from drop down at right upper corner.
- Click on function.php from right pane.
- Copy and paste below code at the bottom of all other and click on Submit/ Save.
Below the filter code that needs to be added in function.php file:
Once this code is added, clear your cache plugin and refresh the article or blog post page. There will be no website URL field in comment form.
Note and Conclusion:
Make sure that you have a backup of files that are being edited (function.php). Also do not forget to clear cache plugin to make these changes effective.