Hallo zusammen.
Ich habe ein neues Theme in Betrieb genommen und benutze für Antworten in den Kommentaren das Plugin "@ Reply". Dieses setzt an den Anfang des Antwort-Kommentars einen Link zum beantworteten Kommentar, also z.B. so:
Leider kommt man mit diesem Link nicht an den Anfang des Kommentars, sondern an sein Ende, was folglich eher ungünstig ist und für Verwirrung sorgt.
Die Kommentarsektion ist in der functions.php des Teams verankert, hier mal der Code:
PHP
add_filter('comments_template', 'legacy_comments');
function legacy_comments($file) {
if(!function_exists('wp_list_comments')) : // WP 2.7-only check
$file = TEMPLATEPATH . '/legacy.comments.php';
endif;
return $file;
}
?>
<?php
function eq_comment($comment, $args, $depth) {
$GLOBALS['comment'] = $comment; ?>
<div class="commentwrap">
<div>
<ul class="commentmetadata">
<li><?php echo get_avatar( get_comment_author_email(), '50' ); ?></li>
<li><?php comment_author_link() ?></li>
<li><?php comment_date('j. M Y, G:i') ?></li>
<li><?php edit_comment_link('Edit','',''); ?></li>
<li><?php echo comment_reply_link(array('depth' => $depth, 'max_depth' => $args['max_depth'])); ?></li>
</ul>
</div>
<?php if ($comment->comment_approved == '0') : ?>
<em>Your comment is awaiting moderation.</em>
<?php endif; ?>
<div class="commentpost"><?php comment_text() ?></div>
<div class="clear"></div>
<li <?php comment_class(); ?> id="comment-<?php comment_ID( ); ?>"></li>
</div>
<?php } ?>
Alles anzeigen
Ich weiß nicht, ob dies der relevante Teil ist und wo ich etwas ändern müsste, damit der Link an die gewünschte Stelle springt (ich schätze mal, irgendwas definiert ja den "Anfang" des Kommentars).
Weiß jemand Rat?