On each basic page the text "0 comments" is always shown although the setting for the basic page content type is hidden for comments. Disappears when a different theme is activated.

CommentFileSizeAuthor
busy_0_comments.jpg115.71 KBrichH
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

sojusnik’s picture

I have the same problem here. Seems to be a bug, that needs to be fixed.

stBorchert’s picture

Please try the following: change line 60 of template.php from

if ($vars['page'] && isset($vars['content']['links']['comment'])) {

to

if ($vars['page'] && isset($vars['content']['links']['comment']) && $vars['comment_count'] > 0) {

richH’s picture

Hi,

perfect! The solution works great. The "0 comments" disappears nicely with this change to the code

Rich

yooperjb’s picture

Awesome! Thanks for the fix. This has been driving me crazy. Didn't realize it was actually the theme causing the issue.

stBorchert’s picture

Version: 7.x-1.4 »
Status: Active » Fixed

Fixed with commit 57e124b.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.