{"id":15925767,"date":"2022-08-17T20:28:46","date_gmt":"2022-08-17T20:28:46","guid":{"rendered":"https:\/\/wordpress.org\/support\/?post_type=helphub_article&#038;p=15925767"},"modified":"2026-05-21T02:17:38","modified_gmt":"2026-05-21T02:17:38","slug":"comment-edit-link-block","status":"publish","type":"helphub_article","link":"https:\/\/wordpress.org\/documentation\/article\/comment-edit-link-block\/","title":{"rendered":"Comment Edit Link block"},"content":{"rendered":"\n<p class=\"has-text-align-right has-small-font-size wp-block-paragraph\"><a href=\"https:\/\/wordpress.org\/documentation\/article\/blocks\/\">Go back to the list of <strong>Blocks<\/strong><\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The <em>Comment Edit Link<\/em> block<em> <\/em>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 <em>Edit<\/em> link. The Edit link is only visible to users who have permission to edit the comments. <\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1007\" height=\"625\" src=\"https:\/\/wordpress.org\/documentation\/files\/2022\/08\/Comment-Edit-Link-Block.png\" alt=\"Comment Edit Link Block\" class=\"wp-image-16368044\" style=\"aspect-ratio:1.6112028951302022;width:605px;height:auto\" srcset=\"https:\/\/wordpress.org\/documentation\/files\/2022\/08\/Comment-Edit-Link-Block.png 1007w, https:\/\/wordpress.org\/documentation\/files\/2022\/08\/Comment-Edit-Link-Block-300x186.png 300w, https:\/\/wordpress.org\/documentation\/files\/2022\/08\/Comment-Edit-Link-Block-768x477.png 768w\" sizes=\"auto, (max-width: 1007px) 100vw, 1007px\" \/><\/figure>\n\n\n\n<p class=\"has-background wp-block-paragraph\" style=\"background-color:#e5f5fa\">You can only insert the <em>Comment Edit Link <\/em>block inside a Comment Template block within the Comment Query Loop block.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Click the (+) icon inside the comment template block to open the block inserter pop-up window and search for the <em>Comment Edit Link<\/em> block.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can also use the keyboard shortcut <kbd>\/comment-edit-link <\/kbd>to quickly insert a <em>Comment Edit Link <\/em>block inside a Comment Template block.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"672\" height=\"556\" src=\"https:\/\/wordpress.org\/documentation\/files\/2022\/08\/How-to-quickly-add-Comment-Edit-Link-Block.gif\" alt=\"How to quickly add Comment Edit Link Block\" class=\"wp-image-16368046\" \/><\/figure>\n\n\n\n<p class=\"has-text-align-left has-background wp-block-paragraph\" style=\"background-color:#e5f5fa\"><a href=\"https:\/\/wordpress.org\/documentation\/article\/adding-a-new-block\/\">Detailed instructions on adding blocks<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Block toolbar<\/h2>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"285\" height=\"68\" src=\"https:\/\/wordpress.org\/documentation\/files\/2022\/08\/Block-toolbar-in-the-Comment-Edit-Link-Block.png\" alt=\"Block toolbar in the Comment Edit Link Block\" class=\"wp-image-16368047\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The block toolbar contains the tools to customize each block. The <em>Comment Edit Link<\/em> block\u2019s toolbar consists of the following tools:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Transform to<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can transform a <em>Comment Edit Link<\/em> block into a Columns block, or a Group block.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"385\" height=\"201\" src=\"https:\/\/wordpress.org\/documentation\/files\/2022\/08\/Transform-tool-in-the-Comment-Edit-Link-Block.png\" alt=\"Transform tool in the Comment Edit Link Block\" class=\"wp-image-16368048\" srcset=\"https:\/\/wordpress.org\/documentation\/files\/2022\/08\/Transform-tool-in-the-Comment-Edit-Link-Block.png 385w, https:\/\/wordpress.org\/documentation\/files\/2022\/08\/Transform-tool-in-the-Comment-Edit-Link-Block-300x157.png 300w\" sizes=\"auto, (max-width: 385px) 100vw, 385px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Block-moving tools<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"276\" height=\"68\" src=\"https:\/\/wordpress.org\/documentation\/files\/2022\/08\/Block-moving-tool-in-the-Comment-Edit-Link-Block.png\" alt=\"Block moving tool in the Comment Edit Link Block\" class=\"wp-image-16368049\" \/><\/figure>\n\n\n\n<p class=\"has-text-align-left has-background wp-block-paragraph\" style=\"background-color:#e5f5fa\"><a rel=\"noreferrer noopener\" href=\"https:\/\/wordpress.org\/documentation\/article\/moving-blocks\/\" target=\"_blank\">Get more information about moving a block within the editor.<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">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 <em>Comment Edit Link<\/em> 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.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Change text alignment<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"336\" height=\"204\" src=\"https:\/\/wordpress.org\/documentation\/files\/2022\/08\/Change-test-alignment-in-the-Comment-Edit-Link-Block.png\" alt=\"Change text alignment in the Comment Edit Link Block\" class=\"wp-image-16368050\" srcset=\"https:\/\/wordpress.org\/documentation\/files\/2022\/08\/Change-test-alignment-in-the-Comment-Edit-Link-Block.png 336w, https:\/\/wordpress.org\/documentation\/files\/2022\/08\/Change-test-alignment-in-the-Comment-Edit-Link-Block-300x182.png 300w\" sizes=\"auto, (max-width: 336px) 100vw, 336px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Text alignment options let you align the Edit button towards the left, center, or right.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>More options<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"284\" height=\"74\" src=\"https:\/\/wordpress.org\/documentation\/files\/2022\/08\/more-options.png\" alt=\"\" class=\"wp-image-16368051\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The <a href=\"https:\/\/wordpress.org\/documentation\/article\/more-options\">More Options menu<\/a> represented by <strong>three vertical dots on the far right of the toolbar<\/strong> gives you more features such as the ability to duplicate, remove, or edit your block as HTML.&nbsp;<\/p>\n\n\n\n<p class=\"has-text-align-left has-background wp-block-paragraph\" style=\"background-color:#e5f5fa\"><a rel=\"noreferrer noopener\" href=\"https:\/\/wordpress.org\/documentation\/article\/moving-blocks\/\" target=\"_blank\"><\/a><a href=\"https:\/\/wordpress.org\/documentation\/article\/more-options\/\">Read about these and other settings.<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Block settings<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">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.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"192\" height=\"47\" src=\"https:\/\/wordpress.org\/documentation\/files\/2022\/08\/The-cog-icon-in-the-Comment-Edit-Link-Block-to-show-the-Block-settings.png\" alt=\"The cog icon in the Comment Edit Link Block to show the Block settings\" class=\"wp-image-16368052\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Here are the options for the <em>Comment Edit Link<\/em> block:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Link <\/h3>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"266\" height=\"83\" src=\"https:\/\/wordpress.org\/documentation\/files\/2022\/08\/Link-settings-in-the-Comment-Edit-Link-Block.png\" alt=\"Link settings in the Comment Edit Link Block\" class=\"wp-image-16368053\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">In the Link Settings section, you can enable the <em>open in new tab<\/em> option, and if enabled, will open the link editing page in a new tab.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Color <\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The Comment Edit Link block lets you customize the background and link color.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">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.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"583\" height=\"385\" src=\"https:\/\/wordpress.org\/documentation\/files\/2022\/08\/Color-settings-in-the-Comment-Edit-Link-Block.png\" alt=\"Color settings in the Comment Edit Link Block\" class=\"wp-image-16368054\" srcset=\"https:\/\/wordpress.org\/documentation\/files\/2022\/08\/Color-settings-in-the-Comment-Edit-Link-Block.png 583w, https:\/\/wordpress.org\/documentation\/files\/2022\/08\/Color-settings-in-the-Comment-Edit-Link-Block-300x198.png 300w\" sizes=\"auto, (max-width: 583px) 100vw, 583px\" \/><\/figure>\n\n\n\n<p class=\"has-text-align-left has-background wp-block-paragraph\" style=\"background-color:#e5f5fa\"><a rel=\"noreferrer noopener\" href=\"https:\/\/wordpress.org\/documentation\/article\/moving-blocks\/\" target=\"_blank\"><\/a><a href=\"https:\/\/wordpress.org\/documentation\/article\/more-options\/\"><\/a><a href=\"https:\/\/wordpress.org\/documentation\/article\/colors-settings-overview\/\">See this guide for more information about changing colors.<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Typography <\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Typography settings allow you to change a block\u2019s font size, appearance, line height, letter casing, and spacing.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"267\" height=\"370\" src=\"https:\/\/wordpress.org\/documentation\/files\/2022\/08\/Typography-settings-in-the-Comment-Edit-Link-Block.png\" alt=\"Typography settings in the Comment Edit Link Block\" class=\"wp-image-16368055\" srcset=\"https:\/\/wordpress.org\/documentation\/files\/2022\/08\/Typography-settings-in-the-Comment-Edit-Link-Block.png 267w, https:\/\/wordpress.org\/documentation\/files\/2022\/08\/Typography-settings-in-the-Comment-Edit-Link-Block-216x300.png 216w\" sizes=\"auto, (max-width: 267px) 100vw, 267px\" \/><\/figure>\n\n\n\n<p class=\"has-text-align-left has-background wp-block-paragraph\" style=\"background-color:#e5f5fa\"><a rel=\"noreferrer noopener\" href=\"https:\/\/wordpress.org\/documentation\/article\/moving-blocks\/\" target=\"_blank\"><\/a><a href=\"https:\/\/wordpress.org\/documentation\/article\/more-options\/\"><\/a><a href=\"https:\/\/wordpress.org\/documentation\/article\/typography-settings-overview\/\">Get more details about changing typography settings.<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Advanced settings<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The \u201cAdvanced\u201d tab lets you add CSS class(es) to your block. This will allow you to write custom CSS and styles to the block.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"275\" height=\"135\" src=\"https:\/\/wordpress.org\/documentation\/files\/2022\/08\/Advance-settings-in-the-Comment-Edit-Link-Block.png\" alt=\"Advance settings in the Comment Edit Link Block\" class=\"wp-image-16368056\" \/><\/figure>\n\n\n\n<div id=\"changelog\" class=\"wp-block-group changelog has-background is-layout-flow wp-block-group-is-layout-flow\" style=\"background-color:#dce5ec\">\n<h2 class=\"wp-block-heading has-medium-font-size\">Changelog<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Created 2022-08-17<\/li>\n<\/ul>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>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 [&hellip;]<\/p>\n","protected":false},"author":14322318,"featured_media":0,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false},"category":[80,91],"class_list":["post-15925767","helphub_article","type-helphub_article","status-publish","hentry","category-customization","category-theme-blocks"],"revision_note":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/documentation\/wp-json\/wp\/v2\/articles\/15925767","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/documentation\/wp-json\/wp\/v2\/articles"}],"about":[{"href":"https:\/\/wordpress.org\/documentation\/wp-json\/wp\/v2\/types\/helphub_article"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/documentation\/wp-json\/wp\/v2\/users\/14322318"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/documentation\/wp-json\/wp\/v2\/comments?post=15925767"}],"version-history":[{"count":6,"href":"https:\/\/wordpress.org\/documentation\/wp-json\/wp\/v2\/articles\/15925767\/revisions"}],"predecessor-version":[{"id":16368057,"href":"https:\/\/wordpress.org\/documentation\/wp-json\/wp\/v2\/articles\/15925767\/revisions\/16368057"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/documentation\/wp-json\/wp\/v2\/media?parent=15925767"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wordpress.org\/documentation\/wp-json\/wp\/v2\/category?post=15925767"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}