How to remove comment author’s URL from your WordPress blog?

Posted by The Patri0t 22 February, 2010 |

I recently came across an excellent read about the secrets of comments.php in WordPress by Gilles Maes at Net-Tuts, and I thought of testing this immediately, how to remove comment author’s URL from your WordPress blog. Now it is there for a reason, and I do not really recommend doing this but then the quality of some links is extremely low. I usually edit out questionable links from author and allow the comment when reasonable but I can’t imagine doing that all the time and certainly not on a blog with very big audience.

You can also simply remove URL field from comments.php but I won’t do that if I were you, simply because down the line some day you might want to get them back, so let them live in the database but not show if you have a problem with it.

Now in order to remove comment author’s URL, link or website, look for the following code under comments.php of the theme you are using.

<?php comment_author_link(); ?>

and remove _link so it looks like,

<?php comment_author(); ?>

that’s it, you are done. If you are having any trouble then feel free to ask me.

Share and Enjoy:
  • Digg
  • StumbleUpon
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Technorati
  • Twitter

No related posts.

Categories : Tutorials,Wordpress Tags : , ,

Comments
February 22, 2010

Thanks, this has been helpful

Posted by Jamie
February 27, 2010

After reading you site, Your site is very useful for me .I bookmarked your site!

Posted by Johnryen
March 6, 2010

After reading you site, Your site is very useful for me .I bookmarked your site!

Posted by batt
March 7, 2010

thanks for this useful info

Posted by ray
March 10, 2010

thanks for this useful info

Posted by jordan
March 13, 2010

Hello,
Thanx for this subscribed to feeds keep it up

Posted by counterlord
March 21, 2010

Hello. And Bye.

Posted by lirik
March 22, 2010

Your article very interesting, I have introduced a lot of friends look at this article, the content of the articles there will be a lot of attractive people to appreciate, I have to thank you such an article.

Posted by walker
March 22, 2010

thanks

Posted by walker
April 2, 2010

Amiable brief and this post helped me alot in my college assignement. Thanks you for your information.

Posted by WP Themes
April 7, 2010

Thanks for keeping great posts!

Posted by free trials
April 9, 2010

Good dispatch and this enter helped me alot in my college assignement. Thank you on your information.

Posted by WP Themes
November 25, 2010

Awesome, just added this to my blog and it worked thanks :)

Posted by LEAK Magazine
Leave a comment

(required)

(required)