Liebe Astrid, danke, dass Du Dich um mich kümmerst.
Ich habe Deinen obigen Code in die comments.php eingetragen, so dass dies nun so aussieht:
PHP
<li class="<?php echo $oddcomment; ?>" id="comment-<?php comment_ID() ?>">
<?php if($isByAuthor ) { echo "admin";} else { echo "user"; } ?>"
<cite><?php comment_author_link() ?></cite> schreibt:
<?php if ($comment->comment_approved == '0') : ?>
<em>Dein Kommentar wird zur Freischaltung überprüft.</em>
<?php endif; ?>
<br />
<small class="commentmetadata"><a href="#comment-<?php comment_ID() ?>" title=""><?php comment_date('F jS, Y') ?> at <?php comment_time() ?></a> <?php edit_comment_link('e','',''); ?></small>
<?php comment_text() ?>
</li>
Alles anzeigen
Der style.css habe ich folgendes hinzugefügt:
Fatales Ergebnis: der gesamte Hintergrund ist nun farbig, es sieht schlimm aus und man kann fast nichts mehr erkennen.
Ich bekomme folgende Fehlermeldung (die bekomme ich immer, egal was ich ausprobiere):
Parse error: syntax error, unexpected T_ENDFOREACH in /www/htdocs/w007aaa5/blog/wp-content/themes/connections-10/comments.php on line 44
Ich bin absolut ratlos. Vielleicht lässt das mein theme (connections 1.0) einfach nicht zu, kann das sein?