Title: Comment Template block
Author: Femy Praseeth
Published: August 19, 2022
Last modified: June 6, 2024

---

# Comment Template block

## In this article

 * [How to use the Comment Template Block](https://wordpress.org/documentation/article/comment-template-block/?output_format=md#how-to-use-the-comment-template-block)
 * [Block toolbar](https://wordpress.org/documentation/article/comment-template-block/?output_format=md#block-toolbar)
    - [Select Comments block](https://wordpress.org/documentation/article/comment-template-block/?output_format=md#select-comments-block)
    - [Transform to](https://wordpress.org/documentation/article/comment-template-block/?output_format=md#transform-to)
    - [Block-moving tools](https://wordpress.org/documentation/article/comment-template-block/?output_format=md#block-moving-tools)
    - [Change alignment](https://wordpress.org/documentation/article/comment-template-block/?output_format=md#change-alignment)
    - [Options](https://wordpress.org/documentation/article/comment-template-block/?output_format=md#options)
 * [Block settings](https://wordpress.org/documentation/article/comment-template-block/?output_format=md#block-settings)
    - [Typography](https://wordpress.org/documentation/article/comment-template-block/?output_format=md#typography)
    - [Dimensions](https://wordpress.org/documentation/article/comment-template-block/?output_format=md#dimensions)
    - [Advanced](https://wordpress.org/documentation/article/comment-template-block/?output_format=md#advanced)
 * [Changelog](https://wordpress.org/documentation/article/comment-template-block/?output_format=md#changelog)

[ Back to top](https://wordpress.org/documentation/article/comment-template-block/?output_format=md#wp--skip-link--target)

[Go to the List of Blocks](https://wordpress.org/documentation/article/blocks/)

The _Comment Template _block is a part of the _Comments _block. It contains block
elements to display comments, such as the comment author, avatar, and comment content.

## 󠀁[How to use the Comment Template Block](https://wordpress.org/documentation/article/comment-template-block/?output_format=md#how-to-use-the-comment-template-block)󠁿

When you add a Comments block, the _Comment Template_ block is included by default.
Also, you can only insert a _Comment Template_ block inside a Comments block. Since
the _Comment Template_ is a part of the Comments block, the content will change 
on the front-end depending on the query.

![Comment Template block](https://lh6.googleusercontent.com/lTEIwsk3Kl0fo5UgsiAQCEAGCYKFcEfHeLy3Iwp0kvti6KmwzgrbN2yl_NQaPo2l1JKn3MAK14vqmtmWsa1N0f4T6_dq-
s6Zeoelm1hdPxwgN--ih6QW11fgMOl4Ndv6uvu2gh2_TJfRQIoSbYvDWg8)

To add a _Comment Template_ block, click the block inserter icon (**+**) inside 
the Comments block to open the block inserter pop-up window and search for the _Comment
Template_ block.

You can also use the keyboard shortcut /comment-template to insert a_ Comment Template_
block quickly.

Check the detailed instructions on how to add a block [here](https://wordpress.org/support/article/adding-a-new-block/).

When the _Comments _block is added in the post editor, the _Comment Template _block
will display the actual comments on the post and use a “No results found” placeholder
when there’s no comment on the post yet.

![No results found placeholder](https://wordpress.org/documentation/files/2023/04/
image-4.png)

## 󠀁[Block toolbar](https://wordpress.org/documentation/article/comment-template-block/?output_format=md#block-toolbar)󠁿

To view the block toolbar, click on the block, and the toolbar will be displayed.

Every block has unique toolbar icons and blocks specific user controls that allow
you to manipulate the block right in the editor.

The _Comment Template _block shows the following buttons:

![Comment Template block toolbar](https://wordpress.org/documentation/files/2023/
04/image-2.png)

 * Select Comments block
 * Transform to
 * Drag icon
 * Move arrows
 * Align
 * More options

### 󠀁[Select Comments block](https://wordpress.org/documentation/article/comment-template-block/?output_format=md#select-comments-block)󠁿

![Select Comments Query loop block in the Comment Template block](https://lh6.googleusercontent.
com/umhCYzt--ADX979nT2LxlCAWPeH6yAwE6-4L9E4KKg8a_F1msm8C30bk1RAKtmukHGW9jA8i8Ec-
LZvsucPkF6hGIlCbTdGwI1-dtCY2ANE97AnN0k_Ksf9TTPl3H4zbjijNNQkOkqDErKPyCamFROs)

This button will select the Comments block, as it’s the parent block of the _Comment
Template_ block.

### 󠀁[Transform to](https://wordpress.org/documentation/article/comment-template-block/?output_format=md#transform-to)󠁿

![Transform tool in the Comment Template block](https://lh4.googleusercontent.com/
Ry6U7hQF-dK7ymftQ7EBK44tm_DAOQNYinwPZBBzOAI9KDZhwz_y9tsS15NbeRVUjgu7FHqiO5M212Y4_w8pTGR1yoE9mUOw6_l2OsxDgX5kCRLvUgRikXVS4zqK_vQejCL0AHRh5xTUd7fMEZ-
efJU)

When you click the Transform button, you can convert the _Comment Template_ block
into another block type using the existing content.

### 󠀁[Block-moving tools](https://wordpress.org/documentation/article/comment-template-block/?output_format=md#block-moving-tools)󠁿

![Block moving tools in the Comment Template block](https://lh6.googleusercontent.
com/V4_YnsO5F7wlEIOSc33Vu0Tz-Ajn5EMwSEw3y7tXkAP1sP5RHGvDMrpPVsGH84GU93pPb1iq9G5W6jCOZ74dZyfrYJtvoW4Nhjs6ejqJM3Y3E9ml8oFL5DPN14TDBIN9A6hyKu-
LPPzuy1l5sKE3WBU)

Use the block-moving tools to move the block up and down inside the editor. Use 
the six dots icon to drag and drop the _Comment Template_ block and reposition it
anywhere on the Comments block. Alternatively, click on the up and down arrows to
move the block up or down the editor.

[Get more information about moving a block within the editor.](https://wordpress.org/documentation/article/moving-blocks/)

### 󠀁[Change alignment](https://wordpress.org/documentation/article/comment-template-block/?output_format=md#change-alignment)󠁿

![Change alignment in the Comment Template block](https://lh6.googleusercontent.
com/bNvmJvjbNQmN5jA-RKKIN2DqFdER-pjIL9vV50-WOboCc_6Aii8BA_0tUxJFmXxjMPAGGbirQCjgNTql8TS-
h28zudQJttBHObNN25mmdyrdQtnFun6dnH_PNXCJY_6a04a1DOx2wMKx08sTB12nIKY)

The _change alignment _tool is used for the _Comment Template_ block’s position 
inside the Comments Query Loop block. Choose one of the following block alignment
options:

 * None
 * Align left
 * Align center
 * Align right

### 󠀁[Options](https://wordpress.org/documentation/article/comment-template-block/?output_format=md#options)󠁿

The **Options **button on a block toolbar gives you more features to customize the
block.

[Read about these and other settings.](https://wordpress.org/documentation/article/more-options/)

## 󠀁[Block settings](https://wordpress.org/documentation/article/comment-template-block/?output_format=md#block-settings)󠁿

The block settings panel contains customization options specific to the block. To
open it, select the block and click the **Settings **button next to the **Publish**
button.

![](https://wordpress.org/documentation/files/2023/04/image-3.png)

### 󠀁[Typography](https://wordpress.org/documentation/article/comment-template-block/?output_format=md#typography)󠁿

Typography settings allow you to change a block’s font size, appearance, line height,
letter casing, and spacing.

[[[Get more details about changing typography settings.](https://wordpress.org/documentation/article/typography-settings-overview/)

### 󠀁[Dimensions](https://wordpress.org/documentation/article/comment-template-block/?output_format=md#dimensions)󠁿

The _Comment Template_ block provides dimension settings options to change padding
and margin size.

[For details, refer to this support article: Dimensions Settings Overview.](https://wordpress.org/documentation/article/dimension-controls-overview/)

### 󠀁[Advanced](https://wordpress.org/documentation/article/comment-template-block/?output_format=md#advanced)󠁿

The _Comment Template _block only has Advanced settings in the block settings panel.
The “Advanced” settings tab lets you add CSS class(es) to your block. This will 
allow you to write custom CSS and styles to the block.

![Block settings in the Comment Template block](https://lh4.googleusercontent.com/
gs2hOarzNyh6o14MPEE5X8prsS03ZhIhXTcO8XcvNm67zbqYLCrnUkKj3OymVjS42z9V6W5YsDnngWVKhWictE_d0C6H8fNWSiMro2--
JBbBWWubXQ7Gd8vUmDaWfErS4I4ILoHOb6yzJLMmJjWWVE0)

## 󠀁[Changelog](https://wordpress.org/documentation/article/comment-template-block/?output_format=md#changelog)󠁿

 * Updated 2023-04-11
    - Added “no results found” placeholder
 * Updated 2023-04-05
    - Updated images for 6.2
    - Added dimensions support
 * Created 2022-08-19

## Was this article helpful? How could it be improved? 󠀁[Cancel reply](https://wordpress.org/documentation/article/comment-template-block/?output_format=md#respond)󠁿

[Log in to submit feedback](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fdocumentation%2Farticle%2Fcomment-template-block%2F&locale=en_US).
If you need support with something that wasn't covered by this article, please post
your question in the [support forums](https://wordpress.org/support/forums/).

First published

August 19, 2022

Last updated

June 6, 2024