Changing Readers' Comments' Colors

  • Unknown's avatar

    The color for my readers’ comments needs to be different for ease of reading.

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    I’m not clear if one can use a custom design upgrade and CSS editing to make that chnage. I tagged this thread so it will be moved to the CSS Forum where you can get an answer to that question.

  • Unknown's avatar

    Traditionally, comments by the post author are set in a different color while reader comments are left alone. Here is an example:

    .bypostauthor {
    	background: #ffe;
    }

    To target specific comment types, view the page source and look for the section of HTML that starts with:

    <div id="comments">

    Take a look at the list inside that section. Each list element has a set of classes which you can use to target them with CSS. Here is an example of the opening tag for one of the list elements in your latest post:

    <li class="comment byuser comment-author-kdonnel8 odd alt thread-odd thread-alt depth-1 highlander-comment" id="li-comment-6">

    So, you could target that particular comment by using a selector such as “.byuser” or even “.comment-author-kdonnel8” if you wanted.

  • The topic ‘Changing Readers' Comments' Colors’ is closed to new replies.