Styling the users comments
-
Hello,
I am trying to apply an effect to the user comments using the following guide at:
https://www.accessibility1st.com.au/tutorials/rounded.html
I am aware that i have to add the structure to my “comments.php” file however i don’t seem to be getting the desired result. I believe the tags should be applied to the following code block in the comments.php file:-
<?php if ( $comments ) : ?>
<ol id="commentlist">
<?php foreach ($comments as $comment) : ?>
<li id="comment-<?php comment_ID() ?>"
class="<?=($altComment % 2)?"color2":"color1";$altComment++;?>">
<div class="commentnumber"><div class="top">
<?php echo $altComment;?></div></div>
<cite><?php comment_type(__('Comment'), __('Trackback'), __('Pingback')); ?>
<?php _e('by'); ?>
<?php comment_author_link() ?> — <?php comment_date() ?> at
<a href="#comment-<?php comment_ID() ?>"><?php comment_time() ?></a>
</cite> <?php edit_comment_link(__("Edit This"), ' |'); ?><?php comment_text() ?>
</li>
<!-- Added to seperate comment entries -->
<?php endforeach; ?>
</ol>
One question i have is would I have to change the image size from the url stated above to fit the user comments correctly ?
Any ideas? Steps, Solutions would be appreciated….
Kind Regards
Lee
- The topic ‘Styling the users comments’ is closed to new replies.