Forums

comments.php - Children Comments (6 posts)

  1. Baldtel
    Member
    Posted 1 year ago #

    Hi guys.

    I need a bit of advice on my site, as I am having a few problems and I cannot seem to fix them. So I am wandering if someone can help me please.

    Basically I built this theme myself and I am trying to work out why the children comments are not indenting or nesting correctly. Apparently it is not a CSS issue, but something wrong with the comments template or the template containing the comment's php call. Its listing all the comments as if they are unique comments, even though some of them are child comments.

    http://bmdnewdesign.eighthqz.com/2011/02/20/this-is-a-test-post-see-how-we-go/

    The other thing is I am trying to see what controls the size of the avatar. Is that a WP default size? if so where can it be located.

    I am hoping someone can help me with this. This is my first build from scratch somewhere and I have come unstuck big time. :(

    Is anyone alble to look at my code/templates and tell me what I have done?

    Any help or links would be appreciated.

    Terry

  2. Chip Bennett
    Member
    Posted 1 year ago #

    Have you set the appropriate setting (Dashboard -> Settings -> Discussion) to display nested comments?

    Customizing the size of the avatar is quite simple. Just pass an argument to wp_list_comments(). For example, if you want an 80x80px avatar:

    wp_list_comments( 'avatar_size=80' );

    (I assume you are outputting comments via wp_list_comments()?)

  3. Baldtel
    Member
    Posted 1 year ago #

    Hi.

    Thanks for the info about the avatars.

    As for the nested comments. Yeah, I have nested comments being displayed, but it is still not showing. As I said, I think it might be something to do with the templates, but I am unsure about this. This is what someone else told me.

    I'm banging my head on a brick wall about this.

  4. 123milliseconds
    Member
    Posted 1 year ago #

    >>>Its listing all the comments as if they are unique comments, even though some of them are child comments.

    http://www.niharsworld.com/2008/12/16/how-to-implement-threaded-comments-in-wordpress-themes/

    http://www.kimwoodbridge.com/adding-wordpress-27-threaded-comments-to-your-theme/

    ---

    Alternative

    Download a theme that shows threaded comments and study their code

  5. 123milliseconds
    Member
    Posted 1 year ago #

    Second guessing myself here

    I think its css issue; maybe your coding is correct

    If you install Firefox Firebug then when you visit your website you can immediately see the css styling plus line numbers for that comments

  6. Chip Bennett
    Member
    Posted 1 year ago #

    What 123ms said: if you have the appropriate option (threaded comments) enabled, and you're outputting comments via wp_list_comments(), then the issue is almost certainly CSS.

Topic Closed

This topic has been closed to new replies.

About this Topic