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

Aug 30, 2012 · by Tim Kamanin

In your _template.php_ file add the following code:

php
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