Support » Fixing WordPress » comments not rendering consistently

Viewing 13 replies - 1 through 13 (of 13 total)
  • Your theme is set to use an “.alt” class so that your alternating comments have a different color/styling to them. Many themes do this. You can edit the “.alt” part of your stylesheet to match the other comments.

    hi there. the .alt style tag is actually perfect.

    i’ve been futzing around trying to find the specific comment tag that designates the main comment area and cant find it. what is the main comment style tag called?

    i cant find this css tag for the life of me!

    the .alt code is how i want the comment code to look

    i cant find the other (default?) comment css tag to change it so that it matchs the .alt code.

    what is the default comment code? (for where the person’s comment appears on the blog)

    here is the comment code i’ve found:

    .commentlist li, #commentform input, #commentform textarea {font: 0.9em 'Lucida Grande', Verdana, Arial, Sans-Serif;}

    .commentlist li {font-weight: bold;}

    .commentlist cite, .commentlist cite a {font-weight: bold;font-style: normal;font-size: 1.1em;}

    .commentlist p {font-weight: normal;line-height: 1.5em;text-transform: none;}

    #commentform p {font-family: 'Lucida Grande', Verdana, Arial, Sans-Serif;}

    .commentmetadata {font-weight: normal;}

    here is the alt tag where it is working as i’d like it to:

    .alt {background-color: #ffffff; border-top: 1px solid #000000; border-bottom: 1px solid #000000;
    border-right: 1px solid #000000; border-left: 1px solid #000000;}

    it’s driving me nuts that i cant find the right code for this. it’s taking me way too long to figure this out.

    is there a reference page on wordpress that lists how the various styles correspond to where it appears on the blog? i hope.

    thanks moshu! thats the page i was looking for. and i found the root of the problem by viewing the page source as the codex page suggests.

    somewhere in the template it is coded to alternate comment tags HOWEVER it is alternating from the “alt” class/style to NO CLASS/STYLE! check out this code:

    <li class="alt" id="comment-18"><cite>grapefruitgirl</cite> Says:
    <li class="" id="comment-17"><cite>grapefruitgirl</cite> Says:

    what’s up with that?

    how can i “assign” those alternating comments with a class?

    anyone know of a fix for this?

    Y’know, if you don’t stop bumping your posts so fast, no one’s going to pay attention to you – you need to let at least a day pass before bumping, and only one bump is about what’s allowed.

    We’re not your private theme tweakers. I charge people $60 an hour to fix their stuff…. do some research on wordpress, themes, css etc.

    ok. sorry about that. i’ll wait a few days at least before “bumping up”.

    not sure how one would research no style/class showing up at all, like in this case. i’ll hunt for a “bugs” section i guess because this seems to me to be a bug of sorts.

    ps I completely plan to “give back to the community” once i have my head wrapped around how the wordpress blogs are coded, and plan to help answer questions in the community, to give back and show thanks for all the help you guys have been kind enough to offer.

    If you want black boxes around all comments, add to your commentlist li {border: 1px solid #000;}

    Thanks for the suggestion, Jen. I tried your suggestion and that puts a black box around all the comments, with no separation.

    I’d like the comments to be individual entities.

    Here is the trick, the code lists alternating styles of “alt” with “” (no style tag), if I can somehow populate the “” with a style of my choosing, I would be fine. Just not sure how to program that with the way the .php pages are set up with Word Press.



    Just not sure how to program that with the way the .php pages are set up with Word Press.

    The issue you’re having is with your theme and your understanding of how to use CSS. Not WordPress. Just wanted to clear that up.

    As you noticed, every other comment has the .alt class. Why not just modify the theme to dump the others into a .nonalt class, apply some style (start with copying the .alt stuff)?

    Or look at the comment code in other themes that might already do what you want?

    As said, it’s a theme-specific issue, but I’ve left you a more detailed solution on your site 😉



    i finally got it. thanks all for your help!

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘comments not rendering consistently’ is closed to new replies.