Hallo an alle, ich hab google und die Suche bemüht aber nix passendes gefunden, ich hoffe ihr könnt mir helfen.
Ich bin grad dabei ein eigenes Theme erstellen und stosse bei der comments.php an meine Grenzen. Irgendwie rutscht das "input-Form" aus dem post div.
hier zu sehen
Ich hab so einiges versucht aber irgendwie will es nicht wie ich wohl will
hier die comments.php
PHP
<?php if ('comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
die ('Bitte nicht die Seite direkt aufrufen. Vielen Dank!'); ?>
<?php if ( !empty($post->post_password) && $_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) : ?>
<p>Auch die Kommentare sind durch das Passwort geschützt.</p>
<?php return; endif; ?>
<h2 id="comments"><?php comments_number('Noch keine Kommentare', 'Ein Kommentar', '% Kommentare'); ?>
<?php if ( comments_open() ) : ?>
<a href="#postcomment" title="Einen Kommentar hinterlassen">»»</a>
<?php endif; ?>
</h2>
<?php if ( $comments ) : ?>
<ol class="commentlist">
<?php $count = 0; foreach ($comments as $comment): $count++; ?>
<li id="comment-<?php comment_ID() ?>" class="kommentare<?php global $comment; if ( ($comment->comment_author_email == get_the_author_email()) && ($comment->user_id != 0) ) { echo " mein-kommentar"; } ?>">
<h3><a href="#comment-<?php comment_ID() ?>" class="kommentar-zaehler"><?php echo $count; ?>.</a> – <?php comment_author_link() ?><?php edit_comment_link(__("***"), ' '); ?></h3>
<p class="kommentar-info"><em><?php comment_type('Kommentar', 'Trackback', 'Pingback'); ?> vom <?php comment_date('d. F Y') ?> um <?php comment_time() ?></em></p>
<?php comment_text() ?>
<?php if ($comment->comment_approved == '0') { echo "<p>[Dein Kommentar wird in kürze Freigeschaltet.]</p>"; } ?>
</li>
<?php endforeach; ?>
</ol>
<?php else : // Wenn es noch keine Kommentare gibt ?>
<p>Bis jetzt gibt es noch keine Kommentare.</p>
<?php endif; ?>
<?php if ( comments_open() ) : ?>
<h2 id="postcomment">Einen Kommentar hinterlassen</h2>
<?php if ( get_option('comment_registration') && !$user_ID ) : ?>
<p>Du musst <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php the_permalink(); ?>">dich einloggen,</a> um kommentieren zu können.</p>
<?php else : ?>
<div id="form">
<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
<?php if ( $user_ID ) : ?>
<p>Eingeloggt als <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=logout" title="<?php _e('Log out of this account') ?>">Logout »</a></p>
<?php else : ?>
<p><input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="25" tabindex="1" />
<label for="author"><small>Name <?php if ($req) _e('(required)'); ?></small></label></p>
<p><input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="25" tabindex="2" />
<label for="email"><small>Mail (wird nicht veröffentlicht) <?php if ($req) _e('(required)'); ?></small></label></p>
<p><input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="25" tabindex="3" />
<label for="url"><small>Website</small></label></p>
<?php endif; ?>
<p><small><strong>XHTML</strong> (folgende Tags sind erlaubt): <code><?php echo allowed_tags(); ?></code>. Kommentar-Vorschau ist aktiviert (JavaScript wird benötigt).</small></p>
<p><small><strong>Code-Beispiele:</strong> Damit die Code-Beispiele richtig angezeigt werden, müssen die Sonderzeichen maskiert werden (z. B. <code><</code> zu <code><</code>).</small></p>
<p><textarea name="comment" id="comment" cols="50" rows="12" tabindex="4"></textarea></p>
<p><input name="submit" type="submit" id="submit" tabindex="5" value="Kommentar abschicken" />
<input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" /></p>
<?php do_action('comment_form', $post->ID); ?>
</form>
</div>
<?php endif; // If registration required and not logged in ?>
<?php else : // Comments are closed ?>
<p>Tut mir leid, aber momentan ist die Kommentarfunktion deaktiviert.</p>
<?php endif; ?>
Alles anzeigen
und die Single.php
PHP
<?php get_header(); ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="post_head">
<h2><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>
</div>
<div id="info">Geschrieben von <?php the_author() ?> am <?php the_time('j.m.Y, H:i') ?></div>
<div class="post_article">
<?php the_content('Kompletten Beitrag lesen'); ?>
</div>
<div id="comment">
<?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) { ?><a href="<?php trackback_url(true); ?>" rel="trackback">Trackback</a><?php } ?> <a href="<?php the_permalink() ?>" rel="bookmark">Permanent Link</a>
<?php if(!('open' == $post-> comment_status) && ('open' == $post->ping_status)) { ?>
Zur Zeit können keine Kommentare abgegeben werden. Setze doch einen <a href="< ?php trackback_url(true); ?> " rel="trackback">Trackback auf deine Seite.
<?php } elseif (('open' == $post-> comment_status) && !('open' == $post->ping_status)) { ?>
Pings setzen ist zur Zeit nicht erlaubt.
<?php } elseif (!('open' == $post-> comment_status) && !('open' == $post->ping_status)) { ?>
Weder Pings noch Kommentare sind erlaubt.<?php } ?>
<?php comments_template(); ?>
</div>
<?php endwhile; else: ?>
</div>
<?php endif; ?>
<div class="top_nav">
<div class="next"><?php next_posts_link('� vorherige Seite') ?></div>
<div class="prev"><?php previous_posts_link('n�chste Seite �') ?></div>
</div>
<?php get_footer(); ?>
Alles anzeigen
hoffe Ihr könnt mir helfen