Show only "Read more" link How can show only "read more" link in node's teaser, and remove or unset other links like "add new comments" or "2 Comments" at the end of a node teaser?
There are two ways to do this:


Through PHP. This is the correct way. The code below would go in your theme's .theme file.

function YOUR_THEME_preprocess_links(&amp;$variables) {
  // Determine which links should be removed. These are CSS classes, because
  // they are used as keys in the $variables['links'] array.
  $links_to_remove = array(
    // X comments link.
    'comment-comments',
    // X new comments.
    'comment-new-comments',
    // Add new comment.
    'comment-add',
  );
  // Loop through the links and remove them.
  foreach ($variables['links'] as $css_class =&gt; $link) {
    if (in_array($css_class, $links_to_remove)) {
      unset($variables['links'][$css_class]);
    }
  }
}

Through CSS. This is not the best way, but is faster:

.your-node-selector .node__links li.comment-comments,
.your-node-selector .node__links li.comment-new-comments,
.your-node-selector .node__links li.comment-add {
  display: none;
}