Change comments information display
Viewing 3 replies - 1 through 3 (of 3 total)
-
Try looking in your theme’s comments.php template file.
Hi esmi! Thx for your answer. I have already checked comments.php
The thing is that my theme calls commentlist like this<ol class="commentlist"> <?php wp_list_comments(array('type'=>'comment','callback'=>'mytheme_comment','avatar_size'=>50, 'reply_text'=>'Reply')); ?>It makes a callback to a function called mytheme_comment, and there it sets the format.
The problem is that the format setted there is correct (looks the same as the code in the help article of wp_list_comments)
I really dunno where else to look for it.
I already tried to skip the callback: just doing the default call to wp_list_comments… but it doesn’t work either
the function mytheme_comment looks like this
<?php function mytheme_comment($comment, $args, $depth) { $GLOBALS['comment'] = $comment; ?> <li <?php comment_class(); ?> id="li-comment-<?php comment_ID() ?>"> <div class="comment-top-left"></div> <div class="comment-top-main"></div> <div class="bubble"></div> <div class="comment-top-right"></div> <div id="comment-<?php comment_ID(); ?>" class="comment-body"> <div class="comment-author vcard"> <?php echo get_avatar($comment,$size='50'); ?> <div class="comment-info"> <?php printf(__('<cite class="fn">%s</cite> <span class="says">dice:</span>'), get_comment_author_link()) ?> <div class="comment-meta commentmetadata"><a href="<?php echo htmlspecialchars( get_comment_link( $comment->comment_ID ) ) ?>"><?php printf(__('%1$s at %2$s'), get_comment_date(), get_comment_time()) ?></a><?php edit_comment_link(__('(Edit)'),' ','') ?></div> </div> <!-- end comment-info--> </div> <?php if ($comment->comment_approved == '0') : ?> <em class="moderation"><?php _e('Su comentario está esperando a ser aprobado.') ?></em> <br /> <?php endif; ?> <div class="comment-content"><?php comment_text() ?></div> <!-- end comment-content--> <div class="reply-container"><?php comment_reply_link(array_merge( $args, array('reply_text' => __('Responder'),'depth' => $depth, 'max_depth' => $args['max_depth']))) ?></div> </div> <!-- end comment-body--> <div class="comment-bottom-left"></div><div class="comment-bottom-right"></div> <?php } ?>
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘Change comments information display’ is closed to new replies.
(@vkmc)
15 years, 7 months ago
Hi!
I dunno why but my comments information (date, hour and more) are displaying without format, and I don’t know where to change it.
I add a snapshot so it’s easier to understand wich is the problem.
http://www.apliko.com.ar/wp-content/uploads/2010/10/Sin-título-1.png
Where should I change this?
Hope u can answer me, thanks a lot
Victoria