Support » Themes and Templates » WP 2.7 Comment Threading & Styling

  • I’m hoping someone could help me with a quick CSS question concerning Comment Threading in 2.7. I’m heavily modifying a theme ( that recently updated to 2.7 support. Unfortunately, the update didn’t quite get it right, and the theme author said she was leaving for a few days for the holidays. I’d really like to get this worked out quicker than that.

    Here is a screen shot of what is happening:

    The problem occurs because of the way the CSS is setup. The text of the comment is setup via CSS with something similar to this:

    #comment-area ol li p {style.css (line 1001)
    border:1px solid #E0E0E0;

    Obviously, the problem is that the css is setting a style for each paragraph. So anytime a new paragraph begins, boom, new box.

    So my question is this, what is the correct way to refer to the text in a comment box? Is there a div tag that refers only to the text? Or some sort of CSS trick to only format the text?

    I would appreciate any help…

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Samuel Wood (Otto)

    (@otto42) Admin

    It can’t be done with the default settings. You’d have to make a custom callback to display your comments with a div around the comment text.

    …yeah, that’s far outside my scope of understanding. I guess I’ll just wait for someone that knows what they are doing to write a function for that. Surely to God someone will see the need for the ability to style the comment text separate from everything else sooner rather than later.

    Thanks, Otto.

    Just sorting through the information available in the docs section. I came across

    Can anyone tell me if get_comment_text is still a valid function for WordPress? Could I perhaps use that to style the text? I’m not sure how else I would pull out just the text in the case of a callback…

    I honestly am confused by why the text doesn’t already have some sort of class or ID to set it apart. It seems pretty likely that theme authors will want to style the text differently at times. Especially when you can get just about everything else separated to style.

    But in any case, if I can just fine a solution, it won’t really matter.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘WP 2.7 Comment Threading & Styling’ is closed to new replies.