How To Remove a "Reply" Link In Drupal 7 Comments

30 Aug ยท by Tim Kamanin ยท 1 min read

In your _template.php_ file add the following code:

function themename_preprocess_comment(&$variables) {
  unset($variables['content']['links']['comment']['#links']['comment-reply']);
}

Don't forget to change _themename_ to your theme 's name. Now, everything should be working.

Want to get more ๐Ÿ”ฅ tips like this one?

Subscribe to get notified about new dev tutorials