Support » Themes and Templates » How to style the comment list?

  • In comments.php page there is only next for the comment list:

    <ol class="commentlist">
    	<?php wp_list_comments(); ?>

    How do I style this? Can anyone give me the link to the docs? I don’t find them. Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Jose Castaneda



    How I learned was looking at the way the default twenty twelve does it. It uses a callback to a function.
    <?php wp_list_comments( array( 'callback' => 'custom_comments' ) ); ?>
    Where ‘custom_comments’ is the name of your function for styling.

    function custom_comments( $comment, $args, $depth ){
      // The code for your custom comment styling

    Hope that helps. 🙂



    Forum Moderator

    use a browser inspection tool (such as Firebug) to investigate the html and css structure of the comment list output in the browser, and use css to format it.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to style the comment list?’ is closed to new replies.