In comment.tpl.php, the user picture is surrounded by a <div class="picture">...</div> tag. However, the $picture variable (when set) already include the very DIV construct, so we're getting duplicate divs in the comments.

The solution: just wipe out the <div class="picture">...</div> in comment.tpl.php. BTW, you can remove the if as well (just like is done in node.tpl.php).

Comments

psynaptic’s picture

Status: Active » Fixed

Thanks for the issue post. I have changed:

  <?php if ($picture): ?>
    <div class="comment-picture">
      <?php print $picture; ?>
    </div>
  <?php endif; ?>

Into:

  <?php print $picture; ?>
psynaptic’s picture

Hmm, I can't seem to get the picture to show up. I remember having trouble with this on another site.

flaviovs’s picture

@psynaptic, do you have pictures enabled on your theme configuration? Did you enable user pictures? Did you upload a picture?

psynaptic’s picture

It's ok, I was just being stupid! Was the theme configuration.

Thanks for your help.

Status: Fixed » Closed (fixed)

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