Navigation » Home » Blog » WordPress » In WordPress, How to Remove Website URL from Comments
A disclosure, I may earn if you buy using links on this webpage.

In WordPress, How to Remove Website URL from Comments

In WordPress, How to Remove Website URL from Comments

Remove URL from commentsI wanted a while back to find out how to remove the website URL. This was when people were leaving their comments at the bottom of any of my WordPress Pages and Posts where I allow comments.

This is a great way to encourage conversations. Sometimes people ask related questions in comments.

My reply to those comments means that potentially, other readers would find that information useful. This allows comments to act as additional sources of information for you.


Below is the desired affect


In WordPress, how to remove website url from comments

In the end for me, this required a code change to one of the underlying code files under the hood. So before making any changes like this, it is recommended to backup your website and WordPress files. I tend to be very careful, and tend to document my changes in case I have to revert back. You should too.

  • WordPress Dashboard, Appearance, Editor
  • Select the Theme Functions file (usually called functions.php)
  • Then at the bottom of the file, add code similar to the following:
    Sample HTML source to remove website from comments in WordPress
  • Check and double check and triple check that your code is exactly the same as above.
  • Click on the update file button to save these changes.
  • Test the change to ensure you are happy with it.
  • If not, either revert back to what the code was before or check again that the code is exactly the same. Then save the change, and test the change again. Repeat these steps until you are happy.

This approach worked for me with the WordPress Theme I used at the time of writing this. There is no guarantee that it will work for you.

Hi, I'm David. I write articles such as this one. Enjoy!

[More About David]
  1. This website earns from qualifying purchases made through links in this post.
  2. As an Amazon Associate this website earns from qualifying purchases.
  3. is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon properties including, but not limited to, Amazon offers a small commission on products sold through their affiliate links. Each of your purchases via our Amazon affiliation links supports our cause at no additional cost to you.
  4. Any information mentioned here is subject to change. Any prices quoted or mentioned here are subject to change. It is possible that any products or services referred to here are no longer available.
  5. This site is not intended to provide and does not constitute medical or other professional advice. The content here is designed to support, not replace, medical or psychiatric treatment. Please seek professional care if you believe you may have a condition.
This website welcomes your comments, questions, corrections and additional information relating to this article. Your comments may take some time to appear. Please be aware that off-topic comments will be deleted. Please direct any support related type of questions directly to the applicable organisation.

2 thoughts on “In WordPress, How to Remove Website URL from Comments”

  1. hi david
    I was wondering about how to modify this column, thanks for sharing this tutorial!!! Your tutorials rulezz

    • Hi Milos,

      You are welcome.

      Thanks for your comments and thanks for dropping by.

      Always good to hear that my readers say my content is good and fills a need. 🙂 🙂

      Kind Regards,


Leave a Comment