• baldtel

    (@baldtel)


    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.

    https://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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Chip Bennett

    (@chipbennett)

    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()?)

    Thread Starter baldtel

    (@baldtel)

    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.

    Alwyn Botha

    (@123milliseconds)

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

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

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

    Alternative

    Download a theme that shows threaded comments and study their code

    Alwyn Botha

    (@123milliseconds)

    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

    Chip Bennett

    (@chipbennett)

    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.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘comments.php – Children Comments’ is closed to new replies.