Drupal provides options to display comments in a variety of fashions. In this recipe, we will look to provide an alternate representation by compacting the display of a node's list of comments using jQuery.
We will be using the myzen theme created earlier in this book as the example theme in this recipe. Since we are looking to theme the display of comments, it is assumed that the comment module is enabled and that sample comments are available for testing purposes.
The following steps are to be performed inside the myzen theme folder at
comment.jsand open it in an editor.