WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] zebra-styled-comments (5 posts)

  1. to_ul
    Member
    Posted 6 years 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

  2. alainS
    Member
    Posted 6 years ago #

    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; }

  3. to_ul
    Member
    Posted 6 years ago #

    thank you very much!!! :) does it only work with wp2.3?

  4. alainS
    Member
    Posted 6 years ago #

    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.

  5. to_ul
    Member
    Posted 6 years ago #

    great. thank you, for your help!!!!!!!
    i've found it!

Topic Closed

This topic has been closed to new replies.

About this Topic