Example CSS JS

When using the Single-line comment form, you'll be presented with a unstyled list of comments and commenting form - not ideal. This is however intentional, as we don't believe we should force any style or functionality on your use of Comments.

However, we've provided some sample CSS and minimal JS to get started with.

The HTML code generated by the Single-line comment form tag is based largely on Bootstrap, and is easily stylable through the many classes provided. Have a look at comments.html for the templating code used.

If you wish to customise this form, consult the Template Overrides section.

Full examples #

To get you started, we've provided two fully functional, styled examples: - Non-Ajax - Ajax

Get started with Comments

Available for Craft 2 & Craft 3.