Comment Edit Link block

Go back to the list of Blocks

The Comment Edit Link block displays a link to edit the comment in the WordPress Dashboard. This block is located inside a Comment Query Loop block and lets you customize the appearance of the Edit link. The Edit link is only visible to users who have permission to edit the comments.

Comment Edit Link Block

You can only insert the Comment Edit Link 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 Edit Link block.

You can also use the keyboard shortcut /comment-edit-link to quickly insert a Comment Edit Link block inside a Comment Template block.

How to quickly add Comment Edit Link Block

Detailed instructions on adding blocks

Block toolbar

Block toolbar in the Comment Edit Link Block

The block toolbar contains the tools to customize each block. The Comment Edit Link block’s toolbar consists of the following tools:

Transform to

You can transform a Comment Edit Link block into a Columns block, or a Group block. 

Transform tool in the Comment Edit Link Block

Block-moving tools

Block moving tool in the Comment Edit Link Block

Get more information about moving a block within the editor.

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 Edit Link 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.

Change text alignment

Change test alignment in the Comment Edit Link Block

Text alignment options let you align the Edit button towards the left, center, or right.

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.

The cog icon in the Comment Edit Link Block to show the Block settings

Here are the options for the Comment Edit Link block:

Link settings in the Comment Edit Link Block

In the Link Settings section, you can enable the open in new tab option, and if enabled, will open the link editing page in a new tab. 

Color

The Comment Edit Link block lets you customize the 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 Edit Link Block

See this guide for more information about changing colors.

Typography

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

Typography settings in the Comment Edit Link Block

Get more details about changing typography settings.

Advanced settings

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.

Advance settings in the Comment Edit Link Block

Changelog

  • Created 2022-08-17

Was this article helpful? How could it be improved?

First published

Last updated