Title: Link in comment name
Last modified: May 8, 2020

---

# Link in comment name

 *  [blogodisea](https://wordpress.org/support/users/blogodisea/)
 * (@blogodisea)
 * [6 years ago](https://wordpress.org/support/topic/link-in-comment-name/)
 * Hi, i want to know if it’s possible to quit or hide the link of person who left
   a comment. As you know, if a person leaves a comment adding a URL, its name will
   appear linking to this URL.
 * I want to know if it’s possible to break the links of the comments using the 
   theme, and that it just appears the name of the person, but not linking.
 * Thanks
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Flink-in-comment-name%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [Leo](https://wordpress.org/support/users/leohsiang/)
 * (@leohsiang)
 * [6 years ago](https://wordpress.org/support/topic/link-in-comment-name/#post-12803446)
 * Hi there,
 * This should help:
    [https://generatepress.com/forums/topic/removing-links-from-the-author-date-in-comment-section/#post-679764](https://generatepress.com/forums/topic/removing-links-from-the-author-date-in-comment-section/#post-679764)
   [https://generatepress.com/forums/topic/removing-links-from-the-author-date-in-comment-section/#post-1156937](https://generatepress.com/forums/topic/removing-links-from-the-author-date-in-comment-section/#post-1156937)
 * Let me know 🙂
 *  Thread Starter [blogodisea](https://wordpress.org/support/users/blogodisea/)
 * (@blogodisea)
 * [6 years ago](https://wordpress.org/support/topic/link-in-comment-name/#post-12803586)
 * Thank you, i added the code to funtions.php but it didn’t worked.
 * Still didn’t made any child theme for GeneratePress, don’t know if that has something
   to do for not working.
 *  [Leo](https://wordpress.org/support/users/leohsiang/)
 * (@leohsiang)
 * [6 years ago](https://wordpress.org/support/topic/link-in-comment-name/#post-12804085)
 * Never a good idea to modify the parent theme’s `function.php`
 * Can you try the child theme method as mentioned above?
 *  Thread Starter [blogodisea](https://wordpress.org/support/users/blogodisea/)
 * (@blogodisea)
 * [6 years ago](https://wordpress.org/support/topic/link-in-comment-name/#post-12804320)
 * Sorry, didn’t made a child theme before, maybe i will try.
 * Aside that, i found a solution that can be helpful for more people to control
   spam comments. It has to be added to functions.php
 * 1) This code will unlink any old comment author name from the blog:
 * function no_comment_author_url( $url, $id, $commentr ) {
    return “”; } add_filter(‘
   get_comment_author_url’, ‘no_comment_author_url’, 10, 3);
 * 2) And this code will take off the field URL when a user is leaving a comment.
   This way there’s no way to introduce spam URLs in any new comment.
 * add_filter(‘comment_form_default_fields’, ‘website_remove’);
    function website_remove(
   $fields) {if(isset($fields[‘url’])) unset($fields[‘url’]); return $fields;}
 *  [Leo](https://wordpress.org/support/users/leohsiang/)
 * (@leohsiang)
 * [6 years ago](https://wordpress.org/support/topic/link-in-comment-name/#post-12805129)
 * Sounds good thanks for sharing!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Link in comment name’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/generatepress/3.6.1/screenshot.
   png)
 * GeneratePress
 * [Support Threads](https://wordpress.org/support/theme/generatepress/)
 * [Active Topics](https://wordpress.org/support/theme/generatepress/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/generatepress/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/generatepress/reviews/)

## Tags

 * [comment links](https://wordpress.org/support/topic-tag/comment-links/)
 * [Comments](https://wordpress.org/support/topic-tag/comments/)

 * 5 replies
 * 2 participants
 * Last reply from: [Leo](https://wordpress.org/support/users/leohsiang/)
 * Last activity: [6 years ago](https://wordpress.org/support/topic/link-in-comment-name/#post-12805129)
 * Status: not resolved