Comment Date Block

Go to the List of Blocks

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. 

Comment Date inside the Comment Template block within the Comment

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.

How to add a Comment Date block

Detailed instructions on adding blocks

Block toolbar

Block toolbar in the Comment Date block

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

Block-moving tools

Moe tools in the Comment Date block

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

 

Get more information about moving a block within the editor.

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

Block settings in the Comment Date block

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

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

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

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.

Advanced option in the selected Block
Advanced option in the selected Block

Changelog:

  • Created 2022-07-25

Was this article helpful? How could it be improved?

First published

Last updated