In default theme with WP 2.3 there is file comments.php
There on line 42 you’ll find:
<?php
/* Changes every other comment to a different class */
$oddcomment = ( empty( $oddcomment ) ) ? 'class="alt" ' : '';
?>
So just style the class alt in your css.
Example: .alt { background: #ccc; }
Thread Starter
to_ul
(@to_ul)
thank you very much!!! 🙂 does it only work with wp2.3?
Nope …found same code on WP 2.04 too.
Don’t know if it’s in 1.5 and prior versions as I don’t have a copy.
Thread Starter
to_ul
(@to_ul)
great. thank you, for your help!!!!!!!
i’ve found it!
(@to_ul)
16 years, 5 months ago
hi…can someone help me how to design a zebra-styled-comment section?
like this: http://www.ilfilosofo.com/blog/wp-db-backup/
thank you in advance