Docs

Post Comments

The comments of the current post and the reply form.

On this page

The Post Comments widget shows the comments of the post being viewed, with replies nested under them, followed by the form to leave a comment. Place it at the end of your blog post template.

Three comments under a blog post: Laura Bennett and Daniel Kim each with a date, their text and a Reply link, and a nested reply from Mara Lindqvist, under the heading 3 responses to Designing around natural light
Post Comments with a nested reply, in a blog post template.

Where the comments come from

The comments are the WordPress comments of the post. You approve, answer and delete them in Comments in the WordPress dashboard, and you choose who can comment, whether comments need approval and how deep replies can nest in Settings → Discussion. You can also turn comments on or off for a single post when you edit it.

The widget uses your theme's comments template, so the markup of the list and form comes from your theme. Uncoder gives them a clean look of its own: spacing between comments, nested replies, rounded fields and a submit button in your primary color. Style fonts and colors in the Design tab. It shows nothing when comments are closed and the post has none, and leaves no empty space on the page.

Keep your theme's look

To leave the look of the comment list and form to your theme and site CSS, turn on Theme styling in the Content tab. The form's fields and submit button then take your Design System button and field styles, so they match the buttons and forms of your Uncoder pages. See Buttons. The settings you change in the Design tab still apply.

Post Comments widgets imported from Elementor have Theme styling on, because Elementor shows the comments as the theme styles them. See Import from Elementor.

Add Post Comments

Open your blog post template in the Theme Builder. Then click Insert in the rail on the left, find Post Comments in the Site & theme group (or type "comments" in the search box) and drag it to the end of the template. See Add elements.

Everything the widget shows comes from WordPress. Its only content setting is Theme styling.

Content tab settings

Content tab · Comments
SettingWhat it does
Theme stylingLeaves the look of the comment list and form to your theme and site CSS. The form's fields and submit button then take the Design System button and field styles. The Design tab settings you change still apply. Off by default. See Keep your theme's look.

Design tab settings

Design tab
SectionSettings
TextTypography, Text color, Link color, Link hover color, Headings typography, Headings color.
Comment listSpace between comments, Divider color, Avatar radius, Meta color (author line and date).
Form fieldsTypography, Text color, Background, Border color, Focus border color, Border radius.
Submit buttonTypography, Text color and Background (with Normal and Hover tabs), Border radius, Padding.

The Design tab also has the sections every element shares: Spacing & position, Background & border and Mask. See Spacing, size & position.

Behaviour tab

The Behaviour tab has the settings every element shares: anchor and classes, entrance animations, motion effects, visibility per device, display conditions and interactions. A display condition on Comment count can hide a heading above the comments when there are none. See Display conditions.

Tips

  • The Comments item of the Post Info widget links straight to this list, or to the form when there are no comments yet.
  • Spam comments are handled by WordPress and your anti-spam plugin, not by the form protection of the Form widget.