The Comment Date Block displays the date on which a comment was posted. This block is located inside a Comment Query Loop block and allows users to edit the appearance of the comment date.
You can only insert the Comment Date Block inside a Comment Template block within the Comment Query Loop block.
Click the (+) icon inside the Comment Template block to open the block inserter pop-up window and search for the Comment Date Block.
You can also use the keyboard shortcut /comment-date
to quickly insert a Comment Date block inside a Comment Template block.
Detailed instructions on adding blocks
Block toolbar
The block toolbar contains the tools to customize each block. The Comment Date Block’s toolbar consists of the following tools:
Transform to
You can transform a Comment Date block into a Columns, or a Group block.
![Transform option in the Comment Date block](https://wordpress.org/documentation/files/2022/08/Screen-Shot-2022-08-02-at-10.50.22-AM-1.png)
Block-moving tools
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 Date Block and reposition it anywhere on the editor. 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.
More options
The More Options menu represented by three vertical dots on the far right of the toolbar gives you more features such as the ability to duplicate, remove, or edit your block as HTML.
Read about these and other settings.
Block settings
The block settings panel contains customization options specific to the block. To open it, select the block and click the cog icon next to the Publish button.
Here are the options for the Comment Date Block:
Settings
In the Settings tab, you can select the Date format. By turning on the Default format option, you can choose to use the default date format. When this setting is turned off, you can select the preferred date format from the drop-down list or enter a custom date or time format.
![Changing the Default date format in the Comment Date block](https://wordpress.org/documentation/files/2022/07/Screen-Shot-2022-07-25-at-9.47.41-AM-2-524x1024.png)
You can also turn on/off the ‘Link to comment’ switch. Turning on this button will link the date field to the specific comment.
Color
The Comment Date Block lets you customize the text, background, and link color. Click on any of the options to change the color. Choose from the default color or click the upper rectangle area to pick a custom color using the color picker.
![Color settings in the Comment Date block](https://wordpress.org/documentation/files/2022/07/Screen-Shot-2022-07-25-at-9.55.47-AM-1-1024x530.png)
See this guide for more information about changing colors.
Typography
To access all the typography options click on the 3-dot button in the right corner of the Typography tab. You also have the option to Reset all the typography changes you made by clicking on the Reset all option in the dropdown.
![Reset all typography settings](https://wordpress.org/documentation/files/2022/07/Screen-Shot-2022-07-25-at-10.04.20-AM.png)
Get more details about changing typography settings.
Advanced
The “Advanced” tab lets you add CSS class(es) to your block. This will allow you to write custom CSS and styles to the block.
Changelog
- Created 2022-07-25
Was this article helpful? How could it be improved?
Log in to submit feedback. If you need support with something that wasn't covered by this article, please post your question in the support forums.