Remove Website Url Field Without WordPress Plugin

remove website url field in comment box and disallow user to comment url in comment box

Hello, and Namaste Everyone, I am Sudarshan Gautam From BloggingCruzz.com. In this article, I will teach you How to Remove Website Url Field Without WordPress Plugin. Also, disallow the user to comment URLs in the comment box using an HTML tag. It is very important to do because it reduces spam comments and the only genuine person will comment for queries. Everyone can do with the plugin but it might affect your site speed.

Remove Website URL Field Without WordPress Plugin

Step1: Login to your WordPress Dashboard. Click Appearance > Theme Editor

remove comment url in wordpress
  • Save
remove comment url in WordPress

Step2: Click in function.php. Scroll down to the page and add below code

add_filter('comment_form_default_fields', 'unset_url_field');
function unset_url_field($fields){
    if(isset($fields['url']))
       unset($fields['url']);
       return $fields;
}
remove website url field without wordpress plugin
  • Save
remove website url field without wordpress plugin

Step3: Update File and clear caches if you have used caches on your website.

remove url from website url option from comment box
  • Save
remove url from website url option from comment box

Disallow User to Comment URLs in Comment Box

Step1: Login to your Cpanel account and Go to File Manager. Click Public_html > wp-includes > kses.php

kses file disallow user to comment url in comment box
  • Save
kses file

Step2: Right Click and Edit Kses.php file

edit kses.php
  • Save
edit kses.php

Step3: Find $allowedtags = array(. Add / in the beginning and /* at the end of ‘a’ as shown in the image below.

disallow url in comment box in wordpress
  • Save
disallow url in comment box in wordpress

Conclusion:

In this way, you can remove the website URL field in the comment and disallow the user to comment URL in the comment box. If you have any kind of queries comment below.

Learn - Earn - Share

SEO Tips, Google Adsense, Hosting offers and Special Tips and Tricks To Grow Your Blogging Revenue.

I will never give away, trade or sell your email address. You can unsubscribe at any time.

5 thoughts on “Remove Website Url Field Without WordPress Plugin”

  1. Hey just wanted to give you a brief heads up and let you know a few of the pictures aren’t loading properly.
    I’m not sure why but I think its a linking issue.
    I’ve tried it in two different browsers and both show the same results.

    judi bola online indonesia

    Reply
  2. Hey Sudarshan Gautam ,

    Great post with Effective tips to remove website URL without wordpress plugin. Also thanks for including the helpful images on your post , as it will provide better understanding.

    Your each of the suggested steps to remove website URL field without wordpress plugin and steps to disallow user to comment URLs in comment box are clear, easy to understand and follow, whereas following these steps will be helpful.

    Truly helpful post and thanks for sharing.

    Reply
  3. This site really has all of the information and
    facts I wanted concerning this subject and didn’t know who to ask.

    Feel free to surf to my page …learn more about The Author!

    Reply

Leave a Comment

RECOMMENDED HOSTING

Recent Posts
0 Shares
Share via
Copy link