• HI,
    I’ve tried serveral ways to get the ol for the comments nice formated, but the bugs, rendering differences dont make me happy. (we talking about CSS Bugs )
    So I changed the ol to an ul, but I get lost of the numbers (1, 2, 3…) solution is so simple:
    Just put some code in the foreach loop of the comment list in the file “wp-comments.php” and you back in business.
    <?php
    //this just outputs a number for every post
    echo $x = $x + 1;
    ?>
    The main advantage of this method, you much more flexible, where you put the numbers and how to format it. (there are actually nearly no limits – so use the force Luke)
    HTH
    Rene

Viewing 1 replies (of 1 total)
  • Thread Starter renegrass

    (@renegrass)

    I also want alternative background color for the comments. There are some plugins/hacks arround, I use a dumb simple little script.
    What I use (with the config in the first post) to get this working.

    ....
    <li id="comment-<?php comment_ID();
    //It counts the comments up
    $y = $y + 1;
    if ($y %2 !=0) {
    //that should be the default and should change nothing
    echo '">';
    } else {
    //the second one gives us the alternative class and we could start formating
    echo '" class="alternativ">';
    }
    ?>
    ....

    Maybe it helps someone too.
    HTH
    Rene

Viewing 1 replies (of 1 total)
  • The topic ‘How to Modify the comment list (ol)’ is closed to new replies.