Einzelnen Beitrag anzeigen
Alt 29.06.2008, 18:14   #4 (permalink)
Monika
WPD-Team
 
Benutzerbild von Monika
 
Registriert seit: 04.06.2005
Ort: INET
Beiträge: 7.054
hmm... also meine Glaskugeln sagen mir, das kann nicht funktionieren


öffne mal die comments.php des verwendeten Themes


ergänze
Code:
    /* This variable is for alternating comment background */
    $oddcomment = 'class="alt" ';
?>

<!-- You can start editing here. -->
weiter unten


PHP-Code:
<?php foreach ($comments as $comment) : ?>

        <li <?php echo $oddcomment?>id="comment-<?php comment_ID() ?>">
also zuerst gibts eine Variable die die class="alt" bekommt,so alt wie alternative ... nicht wie uralt


dann gibt man die zu dem li, damit mans stylen kann...

weiter runterscrollen in der comments.php


PHP-Code:
   <?php comment_text() ?>

        </li>

    <?php
        
/* Changes every other comment to a different class */
        
$oddcomment = ( empty( $oddcomment ) ) ? 'class="alt" ' '';
    
?>

    <?php endforeach; /* end for each comment */ ?>
einmal keine css class und einmal eben die css class alt und die


.alt kannst Du dann in deiner style.css anders machen


Adminkommentare: WordPress › Support » Admin Comments: Different CSS



lg
Monika ist offline   Mit Zitat antworten