• I’ve been messing around with this for a while now, been searching and all I can find is stuff dedicated to li.

    I want to highlight the author comments, with maybe another background color of the div or maybe some other color on the author name.

    Since I’m not so fancy at this stuff I cant solve it, do anyone know how I can fix it?

    http://pastebin.com/4aFW50Gv

Viewing 6 replies - 1 through 6 (of 6 total)
  • I have the same problem, i’ve tried these two examples for CSS, but I have no idea of what code and where to insert in the loop.

    .bypostauthor {
    background:#FFF;
    }
    .commentlist .bypostauthor {
    background:#FFF;
    }

    If you use wp_list_comments, WordPress will add all of the classes you need to the comment markup.

    I do that, but there are no bypostauthor or author in my comments.php. I use Twenty Ten.

    There are in all of my themes and I always use wp_list_comments – usually without any custom callback.

    Hmm does this say anything about my problem?

    wp_list_comments( array( 'callback' => 'twentyten_comment' ) );

    Yes – you need to look at the twentyten_comment() callback function.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How do I get .bypostauthor to work with this code?’ is closed to new replies.