Custom Template for Comment based on node type I'm trying to add a custom template file per content type for my comments. comment--[contenttype].tpl.php is not being picked up by default. I read where this may be a d7 bug or perhaps by design. Then I also read that I can add a preprocess function to my template.php, but I'm still a bit confused. I've added this to my theme;

function bartik_preprocess_comment(&amp;$variables) {

}


but what additionally do I have to add to this function to get it to pick up the suggestions. If someone could give me the exact code for my example it would be much appreciated, assuming that my content type is called car.
According to Drupal 7 Template Suggestions, the custom comment template for a content type should be named comment--[node-type].tpl.php. That is confusing, because the actual template you have to use for an article content type is comment--node-article.tpl.php.

Alternatively you could add your custom template suggestion inside template.php:

function bartik_preprocess_comment(&amp;variables) {
  // Let's say you want to have a custom template like comment--custom-TYPE.tpl.php
  // e.g. for an article content type, the template file will be comment--custom-article.tpl.php
  $variables['theme_hook_suggestion'][] = 'comment__custom_' . $variables['node']-&gt;type;
}