I would like to have a heading over my comments that only appears after a comment has been left... I tried the code below but it doesn't seem to be the answer:
<?php if ($comment): ?>
<h2>Comments</h2>
<?php endif; ?>
|
I would like to have a heading over my comments that only appears after a comment has been left... I tried the code below but it doesn't seem to be the answer:
| |||
|
feedback
|
|
This is the default behavior of Garland. Have a look in the
Where did you put your code? Depending on your theme, you most probably want to theme comment-wrapper.tpl.php, which only gets output when there are comments to be displayed. Which what you want. :-) | |||
feedback
|
|
seems that you can add your conditional in a preprocess function, please see "Altering the 'Post new comment' heading" part in: http://www.systemseed.com/blog/how-customise-comment-form-drupal-6 | |||
|
feedback
|