The GavernWP framework supports comments organized into threads, allowing clear post-based discussions.
Options associated with comments configuration can be set using standard options found in a WordPress administration panel (Settings > Discussion). Threads in comments are switched on using the “Enable threaded (nested) comments” option and by specifying the maximum depth of nested comments in threads.
Two following two files are responsible for generating HTML code for the comments:
- comments.php – This includes code which generates a comments list and a form of adding comments.
- gavern/helpers/helper.layout.fragments.php – In the gavern_comment_template function, there is code responsible for generating code of a given comment.
The CSS code responsible for comment styling and providing a form for the adding comments is in the css/wp.css file.