{"id":15857479,"date":"2022-07-25T18:21:41","date_gmt":"2022-07-25T18:21:41","guid":{"rendered":"https:\/\/wordpress.org\/support\/?post_type=helphub_article&#038;p=15857479"},"modified":"2026-03-26T07:30:37","modified_gmt":"2026-03-26T07:30:37","slug":"comment-author-name-block","status":"publish","type":"helphub_article","link":"https:\/\/wordpress.org\/documentation\/article\/comment-author-name-block\/","title":{"rendered":"Comment  Author Name 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 to the List of Blocks<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The <em>Comment Author Name<\/em> <em>block <\/em>displays the username of the comment\u2019s author. This block is nested inside a Comment Query Loop block and lets you customize the appearance of the comment author\u2019s name.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"901\" src=\"https:\/\/wordpress.org\/documentation\/files\/2022\/07\/add-comment-author-block-1024x901.png\" alt=\"The search pop-up window displays the Comment Block with the Comment Author Name Block result.\" class=\"wp-image-16366585\" style=\"width:345px\" srcset=\"https:\/\/wordpress.org\/documentation\/files\/2022\/07\/add-comment-author-block-1024x901.png 1024w, https:\/\/wordpress.org\/documentation\/files\/2022\/07\/add-comment-author-block-300x264.png 300w, https:\/\/wordpress.org\/documentation\/files\/2022\/07\/add-comment-author-block-768x676.png 768w, https:\/\/wordpress.org\/documentation\/files\/2022\/07\/add-comment-author-block.png 1424w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"has-background wp-block-paragraph\" style=\"background-color:#e5f5fa\">You can only insert the&nbsp;<em>Comment Author Name block<\/em>&nbsp;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 Comment Author Name block.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can also use the keyboard shortcut&nbsp;<code>\/comment-name<\/code>&nbsp;to quickly insert a Comment Author Name block inside a Comment Template block.<\/p>\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 is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"804\" height=\"552\" src=\"https:\/\/wordpress.org\/documentation\/files\/2022\/07\/comment-author-name-block-toolbar.png\" alt=\"The Comment Author name block is selected, with the block toolbar highlighted above it.\" class=\"wp-image-16366591\" style=\"width:345px\" srcset=\"https:\/\/wordpress.org\/documentation\/files\/2022\/07\/comment-author-name-block-toolbar.png 804w, https:\/\/wordpress.org\/documentation\/files\/2022\/07\/comment-author-name-block-toolbar-300x206.png 300w, https:\/\/wordpress.org\/documentation\/files\/2022\/07\/comment-author-name-block-toolbar-768x527.png 768w\" sizes=\"auto, (max-width: 804px) 100vw, 804px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The block toolbar contains the tools to customize each block. The Comment Author Name block\u2019s toolbar is relatively simple with 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&nbsp;<em>Comment Author Name block<\/em>&nbsp;into a Columns, or a Group block.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1010\" height=\"724\" src=\"https:\/\/wordpress.org\/documentation\/files\/2022\/07\/comment-author-name-block-transform-tool.png\" alt=\"The Comment Author name block is selected, with the \u2018Transform To\u2019 tool highlighted.\" class=\"wp-image-16366598\" style=\"width:345px\" srcset=\"https:\/\/wordpress.org\/documentation\/files\/2022\/07\/comment-author-name-block-transform-tool.png 1010w, https:\/\/wordpress.org\/documentation\/files\/2022\/07\/comment-author-name-block-transform-tool-300x215.png 300w, https:\/\/wordpress.org\/documentation\/files\/2022\/07\/comment-author-name-block-transform-tool-768x551.png 768w\" sizes=\"auto, (max-width: 1010px) 100vw, 1010px\" \/><\/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 is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"846\" height=\"566\" src=\"https:\/\/wordpress.org\/documentation\/files\/2022\/07\/comment-author-name-block-move-too.png\" alt=\"The Comment Author name block is selected, with the \u2018Move\u2019 tool highlighted.\" class=\"wp-image-16366600\" style=\"width:345px\" srcset=\"https:\/\/wordpress.org\/documentation\/files\/2022\/07\/comment-author-name-block-move-too.png 846w, https:\/\/wordpress.org\/documentation\/files\/2022\/07\/comment-author-name-block-move-too-300x201.png 300w, https:\/\/wordpress.org\/documentation\/files\/2022\/07\/comment-author-name-block-move-too-768x514.png 768w\" sizes=\"auto, (max-width: 846px) 100vw, 846px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Use the block-moving tools to move the block up and down the editor. Use the six dots icon to drag and drop the Comment Author Name 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=\"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\"><strong>Change text alignment<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"957\" height=\"727\" src=\"https:\/\/wordpress.org\/documentation\/files\/2022\/07\/comment-author-name-block-change-text-alignment.png\" alt=\"The Comment Author name block is selected, with the \u2018Change Text Alignment\u2019 tool highlighted.\" class=\"wp-image-16366602\" style=\"width:345px\" srcset=\"https:\/\/wordpress.org\/documentation\/files\/2022\/07\/comment-author-name-block-change-text-alignment.png 957w, https:\/\/wordpress.org\/documentation\/files\/2022\/07\/comment-author-name-block-change-text-alignment-300x228.png 300w, https:\/\/wordpress.org\/documentation\/files\/2022\/07\/comment-author-name-block-change-text-alignment-768x583.png 768w\" sizes=\"auto, (max-width: 957px) 100vw, 957px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Text alignment options lets you choose to align the author&#8217;s name left, center, or right.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">More options<\/h3>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1423\" height=\"1669\" src=\"https:\/\/wordpress.org\/documentation\/files\/2022\/07\/comment-author-name-block-more-options.png\" alt=\"The Comment Author name block is selected, with \u2018More Options\u2019 in the toolbar highlighted.\" class=\"wp-image-16366605\" style=\"object-fit:cover;width:345px;height:345px\" srcset=\"https:\/\/wordpress.org\/documentation\/files\/2022\/07\/comment-author-name-block-more-options.png 1423w, https:\/\/wordpress.org\/documentation\/files\/2022\/07\/comment-author-name-block-more-options-256x300.png 256w, https:\/\/wordpress.org\/documentation\/files\/2022\/07\/comment-author-name-block-more-options-873x1024.png 873w, https:\/\/wordpress.org\/documentation\/files\/2022\/07\/comment-author-name-block-more-options-768x901.png 768w, https:\/\/wordpress.org\/documentation\/files\/2022\/07\/comment-author-name-block-more-options-1310x1536.png 1310w\" sizes=\"auto, (max-width: 1423px) 100vw, 1423px\" \/><\/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\/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<p class=\"wp-block-paragraph\">Here are the options for the Comment Author Name 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 is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"557\" height=\"637\" src=\"https:\/\/wordpress.org\/documentation\/files\/2022\/07\/comment-author-name-block-settings-link.png\" alt=\"The Comment Author name block\u2019s settings, with \u2018Link to authors URL\u2019 highlighted.\" class=\"wp-image-16366607\" style=\"width:400px\" srcset=\"https:\/\/wordpress.org\/documentation\/files\/2022\/07\/comment-author-name-block-settings-link.png 557w, https:\/\/wordpress.org\/documentation\/files\/2022\/07\/comment-author-name-block-settings-link-262x300.png 262w\" sizes=\"auto, (max-width: 557px) 100vw, 557px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">In the Link Settings section, you can enable the <em><code>Link to authors URL<\/code><\/em> option to link the author\u2019s name to their profile page. When you enable it, the <code><em>Open in new tab<\/em> <\/code>option will appear. Enable it if you want the author\u2019s profile page opened in a new tab.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Color<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Text and background colors can be set on a per-block basis, allowing you to call attention to important content. Pick a color from the suggestions, or add a custom color using the color picker or by adding a color code.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"551\" height=\"650\" src=\"https:\/\/wordpress.org\/documentation\/files\/2022\/07\/comment-author-name-block-settings-colors.png\" alt=\"The Comment Author name block\u2019s settings, with \u2018Color&apos; highlighted.\" class=\"wp-image-16366610\" style=\"width:345px\" srcset=\"https:\/\/wordpress.org\/documentation\/files\/2022\/07\/comment-author-name-block-settings-colors.png 551w, https:\/\/wordpress.org\/documentation\/files\/2022\/07\/comment-author-name-block-settings-colors-254x300.png 254w\" sizes=\"auto, (max-width: 551px) 100vw, 551px\" \/><\/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\/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-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"763\" src=\"https:\/\/wordpress.org\/documentation\/files\/2022\/07\/comment-author-name-block-settings-typography-1024x763.png\" alt=\"The Comment Author name block\u2019s settings, with \u2018Typography\u2019 highlighted.\" class=\"wp-image-16366613\" style=\"width:auto;height:345px\" srcset=\"https:\/\/wordpress.org\/documentation\/files\/2022\/07\/comment-author-name-block-settings-typography-1024x763.png 1024w, https:\/\/wordpress.org\/documentation\/files\/2022\/07\/comment-author-name-block-settings-typography-300x224.png 300w, https:\/\/wordpress.org\/documentation\/files\/2022\/07\/comment-author-name-block-settings-typography-768x573.png 768w, https:\/\/wordpress.org\/documentation\/files\/2022\/07\/comment-author-name-block-settings-typography.png 1104w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/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\/typography-settings-overview\/\">Get more details about changing typography settings.<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Dimension<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Dimension controls are used to control how groups of blocks are placed alongside one another, by changing the values for padding, margin, and other dimensions<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"622\" src=\"https:\/\/wordpress.org\/documentation\/files\/2022\/07\/comment-author-name-block-settings-dimensions-1024x622.png\" alt=\"The Comment Author name block\u2019s settings, with \u2018Dimension\u2019 highlighted.\" class=\"wp-image-16366614\" style=\"width:auto;height:345px\" srcset=\"https:\/\/wordpress.org\/documentation\/files\/2022\/07\/comment-author-name-block-settings-dimensions-1024x622.png 1024w, https:\/\/wordpress.org\/documentation\/files\/2022\/07\/comment-author-name-block-settings-dimensions-300x182.png 300w, https:\/\/wordpress.org\/documentation\/files\/2022\/07\/comment-author-name-block-settings-dimensions-768x466.png 768w, https:\/\/wordpress.org\/documentation\/files\/2022\/07\/comment-author-name-block-settings-dimensions.png 1122w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/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\/dimension-controls-overview\/\">Learn more about dimension controls.<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Advanced <\/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 is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"562\" height=\"304\" src=\"https:\/\/wordpress.org\/documentation\/files\/2022\/07\/comment-author-name-block-settings-advanced.png\" alt=\"The Comment Author name block\u2019s settings, with the \u2018Advanced\u2019 settings highlighted.\" class=\"wp-image-16366616\" style=\"width:auto;height:345px\" srcset=\"https:\/\/wordpress.org\/documentation\/files\/2022\/07\/comment-author-name-block-settings-advanced.png 562w, https:\/\/wordpress.org\/documentation\/files\/2022\/07\/comment-author-name-block-settings-advanced-300x162.png 300w\" sizes=\"auto, (max-width: 562px) 100vw, 562px\" \/><figcaption class=\"wp-element-caption\">Advanced option in the selected Block<\/figcaption><\/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>Updated 2026-01-26\n<ul class=\"wp-block-list\">\n<li>Updated screenshots as shown in WP 6.9 release.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Updated 2025-12-08\n<ul class=\"wp-block-list\">\n<li>Changed the capitalization in the title to Comment Author Name block<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Created 2022-07-25<\/li>\n<\/ul>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Go to the List of Blocks The Comment Author Name block displays the username of the comment\u2019s author. This block is nested inside a Comment Query Loop block and lets you customize the appearance of the comment author\u2019s name. You can only insert the&nbsp;Comment Author Name block&nbsp;inside a Comment Template block within the Comment Query [&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-15857479","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\/15857479","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=15857479"}],"version-history":[{"count":17,"href":"https:\/\/wordpress.org\/documentation\/wp-json\/wp\/v2\/articles\/15857479\/revisions"}],"predecessor-version":[{"id":16367217,"href":"https:\/\/wordpress.org\/documentation\/wp-json\/wp\/v2\/articles\/15857479\/revisions\/16367217"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/documentation\/wp-json\/wp\/v2\/media?parent=15857479"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wordpress.org\/documentation\/wp-json\/wp\/v2\/category?post=15857479"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}