Hallo maxe,
erstmal bin ich überglücklich, dass jetzt zumindest schonmal ein Groschen gefallen ist und ich das Prinzip dieses Arrays der comment_form() verstanden habe. - Das hat jetzt so in etwa 3-4 Themedesigns mit teilweise mehrmaligen Anläufen gedauert *uff* :D
Trotzdem wäre es natürlich schöner, dass ganze Formular direkt bearbeiten zu können, als diesen "hack" zu nutzen, daher hier gerne meine comments.php. Wie du siehst nutze ich das Starkers blank Theme, welches aber eigentlich sehr auf dem WP Standard beruht. - Der Aufruf der comment_form() mit dem array war vorher ein reiner Aufruf ohne Parameter.
<?php/**
* The template for displaying Comments.
*
* The area of the page that contains both current comments
* and the comment form. The actual display of comments is
* handled by a callback to starkers_comment which is
* located in the functions.php file.
*
* @package WordPress
* @subpackage Starkers
* @since Starkers HTML5 3.0
*/
?>
<div id="comment_area">
<div id="comments">
<?php if ( post_password_required() ) : ?>
<p><?php _e( 'This post is password protected. Enter the password to view any comments.', 'starkers' ); ?></p>
<?php
return;
endif;
?>
<?php
// You can start editing here -- including this comment!
?>
<?php if ( have_comments() ) : ?>
<?php /* STARKERS NOTE: The following h3 id is left intact so that comments can be referenced on the page */ ?>
<!--<h5 id="comments-title"><?php
printf( _n( 'One Response to %2$s', '%1$s Responses to %2$s', get_comments_number(), 'starkers' ),
number_format_i18n( get_comments_number() ), '' . get_the_title() . '' );
?></h5>-->
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?>
<nav>
<?php previous_comments_link( __( '← Older Comments', 'starkers' ) ); ?>
<?php next_comments_link( __( 'Newer Comments →', 'starkers' ) ); ?>
</nav>
<?php endif; // check for comment navigation ?>
<?php
wp_list_comments( array( 'style' => 'div', 'callback' => 'starkers_comment', 'end-callback' => 'starkers_comment_close' ) );
?>
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?>
<nav>
<?php previous_comments_link( __( '← Older Comments', 'starkers' ) ); ?>
<?php next_comments_link( __( 'Newer Comments →', 'starkers' ) ); ?>
</nav>
<?php endif; // check for comment navigation ?>
<?php else : // or, if we don't have comments:
if ( ! comments_open() ) :
?>
<!--<p><?php _e( 'Comments are closed.', 'starkers' ); ?></p>-->
<?php endif; // end ! comments_open() ?>
<?php endif; // end have_comments() ?>
</div> <!-- #comments -->
<?php comment_form(
array(
'comment_notes_after' => '',
'label_submit' => 'ab damit',
'comment_notes_before' => 'Fragen, Lob und Kritik können hier ',
'title_reply' => 'Kommentieren'
)); ?>
</div> <!--comment_area -->
Alles anzeigen
Danke schonmal für's Ansehen.
Gruß
Salim
Ach und im Übrigen wird mir auf der Seite das Kommentar-Textfeld zweimal angezeigt, die functions sieht aber so aus
function starkers_fields($fields) {$commenter = wp_get_current_commenter();$req = get_option( 'require_name_email' );$aria_req = ( $req ? " aria-required='true'" : '' );$fields = array( 'author' => '<p><label for="author">' . __( '' ) . '</label> ' . ( $req ? '' : '' ) . '<input id="author" name="author" type="text" value="Name" size="40"' . $aria_req . ' /></p>', 'email' => '<p><label for="email">' . __( '' ) . '</label> ' . ( $req ? '' : '' ) . '<input id="email" name="email" type="email" value="E-mail" size="40"' . $aria_req . ' /></p>', 'url' => '<p><label for="url">' . __( '' ) . '</label>' . '<input id="url" name="url" type="url" value="Website" size="40" /></p>', 'comment_field' => '<p class="comment-form-comment"><label for="comment">' . _x( '', 'noun' ) . '</label> <textarea id="comment" name="comment" aria-required="true" rows="15"></textarea></p>',);
Vielleicht dazu auch noch eine Idee?