WordPress.org

Ready to get started?Download WordPress

Forums

Customizing children comments in wp_list_comments (4 posts)

  1. yans_fied
    Member
    Posted 2 years ago #

    for more customizable comments list we can modify how the wp_list_comments look, by adding a callback function.
    But in my case, how do I create my own markup for Children comment? is there any function for checking comment type? like is_children?
    The comment look i have working on is look like this :
    http://dl.dropbox.com/u/26808427/cdn/stuff/children.png

  2. alchymyth
    The Sweeper & Moderator
    Posted 2 years ago #

    you should be able to find the children comments css classes by using a tool such as Firebug http://getfirebug.com/

    Twenty Eleven for instance has the class: ul.children

    in the comment callback function, you can check the value of the $depth variable.

  3. yans_fied
    Member
    Posted 2 years ago #

    the problem is there are different markup for children comments, look at my included image link.

  4. alchymyth
    The Sweeper & Moderator
    Posted 2 years ago #

    the problem is there are different markup for children comments, look at my included image link

    yes - and where is the problem?

    my understanding of your question is, that you want to know how to influence this different markup.

    look into the html output of your site in the browser, to see how different the mark-up is, or if this is just a formatting issue.

    or try to find the comments callback function - if your theme uses one - to see how the markup is done.

Topic Closed

This topic has been closed to new replies.

About this Topic