justify text around pic
-
I’m using the gravatar plugin to add icons to my comments area. Currently it looks like this on my site: https://www.idowens.com/2004/11/27/blog-of-many-colors/#comments
I would, however, like it to look like Kartooner’s site at https://www.kartooner.com/archives/2004/11/17/half-life-2/#comments
where the icon is floated to the left and the comment text is justified around it. The following is my code in wp-comments.php:
<ol class="commentlist">
<?php foreach ($comments as $comment) : ?>
<li class="<?=$oddcomment;?>">
"><cite><?php comment_author_link() ?></cite> Says:<!--<small class="commentmetadata">" title="<?php comment_date('l, F jS, Y') ?> at <?php comment_time() ?>"><?php /* $entry_datetime = abs(strtotime($post->post_date)); $comment_datetime = abs(strtotime($comment->comment_date)); echo time_since($entry_datetime, $comment_datetime) */ ?> after publication. <?php edit_comment_link('e','',''); ?></small>-->
<small class="commentmetadata">" title=""><?php comment_date('F jS, Y') ?> at <?php comment_time() ?> <?php edit_comment_link('e','',''); ?></small>
<img src="<?php gravatar("PG", 60, "https://www.idowens.com/wordpress/wp-content/defico.bmp", "FFCFCF"); ?>" alt="gravatar" />
<?php comment_text() ?><?php /* Changes every other comment to a different class */
if("graybox" == $oddcomment) {$oddcomment="";}
else { $oddcomment="graybox"; }
?>
<?php endforeach; /* end for each comment */ ?>As you can see, at my site, it is putting a break of something after the picture and thus the text isn’t wrapping around the image like I want it to. Any suggestions would be very helpful!
- The topic ‘justify text around pic’ is closed to new replies.