Moderator
Jan Dembowski
(@jdembowski)
Forum Moderator and Brute Squad
Ladycrow,
It’s usually not too hard and the $oddcomment method should work fine. Once you can give the comment it’s own class, then it’s just CSS.
Which theme are you using?
I am using NeoSapien. It seemed to be -slightly- outdated and I’ve tweaked it a bit. It didn’t have the $oddcomment so I added what I found.. resulting in this
<?php foreach ($comments as $comment) : ?>
<li class="<?php echo $oddcomment; ?> " id="comment-<?php comment_ID() ?>">
<?php
echo get_avatar( get_comment_author_email(), $size = '50', $default = 'http://www.ofsexandlove.com/wp/wp-content/themes/ofsexandlove/images/avatar.jpg' );
?>
<cite><?php comment_type(__('Comment'), __('Trackback'), __('Pingback')); ?> <?php _e('by'); ?> <?php comment_author_link() ?> on <?php comment_date() ?> <a href="#comment-<?php comment_ID() ?>"><?php comment_time() ?></a></cite>
<?php comment_text() ?>
</li>
<?php /* Changes every other comment to a different class */
if("altcomment" == $oddcomment) {$oddcomment="";}
else { $oddcomment="altcomment"; }
?>
<?php endforeach; ?>
Just wondering if anyone else has any thoughts on this one..?
Moderator
Jan Dembowski
(@jdembowski)
Forum Moderator and Brute Squad
Sorry, with the profile link not working I could not find this link.
I’ll take a look at this when I get home tonight from work, this is pretty easy to do.
No problem. Thanks a lot!
It seems my comments file is pretty outdated so I’m going to see if I can swap it with the default theme comments.php and if that’ll help any
-edit-
It did help. I’m not even sure how but it’s working so I’ll close this (if I can)
Moderator
Jan Dembowski
(@jdembowski)
Forum Moderator and Brute Squad
Well, that was easy! Good luck with your CSS now 🙂