Hallo an alle!
Wie kann ich mein Kommentarfeld, also das Formular, nach oben verschieben, so dass die Kommentare darunter erscheinen? Gerade wenn man bereits viele Kommentare hat verschiebt sich das Kommentarfeld so weit nach unten und man muss ewig lange scrollen. Genau um das zu vermeiden, möchte ich nun eben das Kommentarfeld oben haben. Hat jemand eine Idee?
Ich habe das Brandon Theme mit der Wordpress Version 4.3.1.
Bin bereits im Kommentar.php, der wie folgt aussieht:
<?php
/**
* The template for displaying Comments.
*/
?>
<div id="comments">
<?php if ( post_password_required() ) : ?>
<p class="nopassword"><?php _e( 'This post is password protected. Enter the password to view any comments.', 'brandon' ); ?></p>
</div>
<?php return;
endif; ?>
<?php if ( have_comments() ) : ?>
<h3 id="comments-title">
<?php printf( _n( '1 Comment', '%1$s Comments', get_comments_number(), 'brandon' ), number_format_i18n( get_comments_number() )); ?>
</h3>
<ol class="commentlist">
<?php wp_list_comments('avatar_size=64'); ?>
</ol>
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?>
<nav id="comment-nav">
<div class="nav-previous"><?php previous_comments_link( __( '← Older Comments', 'brandon' ) ); ?></div>
<div class="nav-next"><?php next_comments_link( __( 'Newer Comments →', 'brandon' ) ); ?></div>
</nav>
<?php endif; ?>
<?php
elseif ( ! comments_open() && ! is_page() && post_type_supports( get_post_type(), 'comments' ) ) :
?>
<p class="nocomments"><?php _e( 'Comments are closed.', 'brandon' ); ?></p>
<?php endif; ?>
<?php comment_form(); ?>
</div><!-- #comments -->
Weiß jedoch nicht, was ich da genau nach oben verschieben muss und wollte jetzt darin nicht rumpfuschen. :-)
Bin für jede Hilfe dankbar!