Hi

How can I programmatically disable the page link labeled "Add new comment" without having to modify the node template?

Thanks

Jeff in Seattle

Comments

vm’s picture

If you disable commenting on that specific content type the link will be removed.

lionheart8’s picture

Just in case you do not know where to do what has been suggested:

Go to admin => Content Types => [Select "Edit" of the content type where you want to remove the "Add new comment] => "Comment settings".

Default comment setting: => "Disable"

:)

jeff00seattle’s picture

Appreciate the reply greatly!!!

patataur’s picture

This is a nice solution but then no more commenting.

Question is : how to remove the link "add new comments" yet allow commenting.

vm’s picture

likely going to require some themeing. either css to hide it or someting more advanced.

lionheart8’s picture

double posted somehow related to Drupal going offline at the point I made my original comment & so did not know my comment had been taken.

vm’s picture

I'd already removed it.