fixing comments
-
I use different post.php templates for my main site posts vs my blog posts. But both call the same comments template using this code:
<?php comments_template('', true); ?> <?php else: ?> <div class="span recent"> <h2><?php fs_lang("Not Found"); ?></h2> <p><?php fs_lang("You are searching for something that isn't here."); ?></p> </div> <?php endif; ?>
Yet both reveal different comment layouts:
Can anyone tell me how to get the blog post comments layout to look like the main site posts comments layout?
Here is the comments template in the theme functions file:
# Comments template function mytheme_comment($comment, $args, $depth) { $GLOBALS['comment'] = $comment; ?> <li <?php comment_class(); ?> id="comment-<?php comment_ID() ?>"> <?php $comment_type = get_comment_type(); if($comment_type == 'trackback') : ?><p class="trackback"><?php fs_lang("Trackback"); ?>: <?php echo get_comment_author_link() ?></p><?php else : ?> <div class="comment1"> <?php echo get_avatar($comment,$size='50'); ?> <div class="details"> <p class="author"><?php echo get_comment_author_link() ?></p> <?php if ($comment->comment_approved == '0') : ?> <p class="mod"><?php fs_lang("Your comment is awaiting moderation."); ?></p> <?php endif; ?> <p class="date"><?php printf(__('%1$s at %2$s'), get_comment_date(), get_comment_time()) ?> <?php edit_comment_link(__('Edit'),' ','') ?> </p> </div> <div class="commenttext"><?php comment_text() ?></div> <div class="reply"> <?php comment_reply_link(array_merge( $args, array('depth' => $depth, 'max_depth' => $args['max_depth']))) ?> </div> </div> <?php endif; }
Thanks!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘fixing comments’ is closed to new replies.