{"id":17037,"date":"2011-01-09T12:43:39","date_gmt":"2011-01-09T07:13:39","guid":{"rendered":"https:\/\/www.quickonlinetips.com\/archives\/?p=17037"},"modified":"2026-10-11T17:52:28","modified_gmt":"2026-10-11T12:22:28","slug":"how-to-change-avatar-size-in-wordpress-comments","status":"publish","type":"post","link":"https:\/\/www.quickonlinetips.com\/archives\/2011\/01\/how-to-change-avatar-size-in-wordpress-comments\/","title":{"rendered":"How to Change Avatar Size in WordPress Comments (Classic and Block Themes)"},"content":{"rendered":"<p>Want bigger or smaller profile pictures in your comments? I once tried to enlarge the avatar size in WordPress comments with CSS and nothing worked, because WordPress outputs the Gravatar image at a fixed size in the HTML. The fix is to tell WordPress which size to generate. Here is how to change the <strong>avatar size in WordPress comments<\/strong> in 2026, for both classic and block themes.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-large wp-image-64078\" src=\"https:\/\/www.quickonlinetips.com\/archives\/wp-content\/uploads\/avatar-size-wordpress-comments-1024x538.webp\" alt=\"Change avatar size in WordPress comments\" width=\"1024\" height=\"538\" srcset=\"https:\/\/www.quickonlinetips.com\/archives\/wp-content\/uploads\/avatar-size-wordpress-comments-1024x538.webp 1024w, https:\/\/www.quickonlinetips.com\/archives\/wp-content\/uploads\/avatar-size-wordpress-comments-300x158.webp 300w, https:\/\/www.quickonlinetips.com\/archives\/wp-content\/uploads\/avatar-size-wordpress-comments-150x79.webp 150w, https:\/\/www.quickonlinetips.com\/archives\/wp-content\/uploads\/avatar-size-wordpress-comments-768x403.webp 768w, https:\/\/www.quickonlinetips.com\/archives\/wp-content\/uploads\/avatar-size-wordpress-comments.webp 1200w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p><strong>Quick answer:<\/strong> In a classic theme, pass <code>'avatar_size' =&gt; 64<\/code> to <code>wp_list_comments()<\/code> in comments.php, or use the <code>wp_list_comments_args<\/code> filter in your child theme. In a block theme, open the Site Editor, select the <strong>Avatar<\/strong> block inside the Comments block and set its size. Make sure avatars are turned on in Settings &gt; Discussion.<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_91 counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-6b0c290487a32\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"ez-toc-cssicon\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #1a202c;color:#1a202c\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #1a202c;color:#1a202c\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-6b0c290487a32\" checked aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.quickonlinetips.com\/archives\/2011\/01\/how-to-change-avatar-size-in-wordpress-comments\/#Why_CSS_alone_does_not_work\" >Why CSS alone does not work<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.quickonlinetips.com\/archives\/2011\/01\/how-to-change-avatar-size-in-wordpress-comments\/#Method_1_Classic_themes_commentsphp\" >Method 1: Classic themes (comments.php)<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.quickonlinetips.com\/archives\/2011\/01\/how-to-change-avatar-size-in-wordpress-comments\/#Method_2_A_filter_in_functionsphp\" >Method 2: A filter in functions.php<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.quickonlinetips.com\/archives\/2011\/01\/how-to-change-avatar-size-in-wordpress-comments\/#Method_3_Block_themes\" >Method 3: Block themes<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.quickonlinetips.com\/archives\/2011\/01\/how-to-change-avatar-size-in-wordpress-comments\/#Avatar_settings_to_check\" >Avatar settings to check<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.quickonlinetips.com\/archives\/2011\/01\/how-to-change-avatar-size-in-wordpress-comments\/#Performance_and_privacy_tips\" >Performance and privacy tips<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.quickonlinetips.com\/archives\/2011\/01\/how-to-change-avatar-size-in-wordpress-comments\/#FAQ\" >FAQ<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.quickonlinetips.com\/archives\/2011\/01\/how-to-change-avatar-size-in-wordpress-comments\/#What_is_the_best_avatar_size_for_comments\" >What is the best avatar size for comments?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/www.quickonlinetips.com\/archives\/2011\/01\/how-to-change-avatar-size-in-wordpress-comments\/#Why_are_avatars_not_showing_in_my_comments\" >Why are avatars not showing in my comments?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/www.quickonlinetips.com\/archives\/2011\/01\/how-to-change-avatar-size-in-wordpress-comments\/#Can_users_upload_their_own_avatar_without_Gravatar\" >Can users upload their own avatar without Gravatar?<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Why_CSS_alone_does_not_work\"><\/span>Why CSS alone does not work<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>WordPress requests each Gravatar at a specific pixel size (32px by default in many themes) and writes width and height into the image tag. CSS can stretch a 32px image to 64px, but it will look blurry. Changing the requested size fixes it properly.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Method_1_Classic_themes_commentsphp\"><\/span>Method 1: Classic themes (comments.php)<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Find the comments list in your theme&#8217;s comments.php, usually:<\/p>\n<pre><code>&lt;?php wp_list_comments(); ?&gt;<\/code><\/pre>\n<p>Change it to:<\/p>\n<pre><code>&lt;?php wp_list_comments( array( 'avatar_size' =&gt; 64, 'style' =&gt; 'ol' ) ); ?&gt;<\/code><\/pre>\n<p>Edit a child theme so updates do not overwrite your change.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Method_2_A_filter_in_functionsphp\"><\/span>Method 2: A filter in functions.php<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>If you do not want to edit comments.php, add this to your child theme&#8217;s functions.php or a code snippets plugin:<\/p>\n<pre><code>add_filter( 'wp_list_comments_args', function ( $args ) {\n    $args['avatar_size'] = 64;\n    return $args;\n} );<\/code><\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Method_3_Block_themes\"><\/span>Method 3: Block themes<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<ol>\n<li>Go to <strong>Appearance &gt; Editor<\/strong> and open the Single Posts template.<\/li>\n<li>Select the <strong>Comments<\/strong> block, then the <strong>Avatar<\/strong> block inside the comment template.<\/li>\n<li>Change the <strong>Image size<\/strong> in the block settings and adjust the border radius for round avatars.<\/li>\n<li>Save the template.<\/li>\n<\/ol>\n<h2><span class=\"ez-toc-section\" id=\"Avatar_settings_to_check\"><\/span>Avatar settings to check<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<ul>\n<li><strong>Settings &gt; Discussion &gt; Avatars:<\/strong> tick &#8220;Show Avatars&#8221;, choose a rating and a default image (Mystery Person, Identicon, Retro and more).<\/li>\n<li>Commenters get a custom picture by creating a free account at <a href=\"https:\/\/gravatar.com\/\" target=\"_blank\" rel=\"noopener\">Gravatar<\/a> with the same email they use to comment.<\/li>\n<li>For round avatars, add CSS like <code>.avatar { border-radius: 50%; }<\/code>. See how to <a href=\"https:\/\/www.quickonlinetips.com\/archives\/2020\/02\/add-custom-css-wordpress-post-editor\/\">add custom CSS in WordPress<\/a>.<\/li>\n<\/ul>\n<h2><span class=\"ez-toc-section\" id=\"Performance_and_privacy_tips\"><\/span>Performance and privacy tips<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<ul>\n<li>Gravatar images load from Gravatar&#8217;s servers. On posts with hundreds of comments, lazy-load avatars or paginate comments.<\/li>\n<li>Some privacy-focused sites use local avatars or disable Gravatar to avoid sending commenters&#8217; email hashes to a third party.<\/li>\n<\/ul>\n<p>More on comments: learn to <a href=\"https:\/\/www.quickonlinetips.com\/archives\/2013\/08\/moderate-wordpress-comments-quickly\/\">moderate WordPress comments quickly<\/a> and <a href=\"https:\/\/www.quickonlinetips.com\/archives\/2008\/07\/how-to-add-gravatars-to-wordpress-themes\/\">add Gravatars to WordPress themes<\/a>.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"FAQ\"><\/span>FAQ<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<h3><span class=\"ez-toc-section\" id=\"What_is_the_best_avatar_size_for_comments\"><\/span>What is the best avatar size for comments?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>48 to 64 pixels works well for most themes. WordPress automatically requests a double-size image for high-resolution screens.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Why_are_avatars_not_showing_in_my_comments\"><\/span>Why are avatars not showing in my comments?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>&#8220;Show Avatars&#8221; may be off in Settings &gt; Discussion, or your theme may not output them.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Can_users_upload_their_own_avatar_without_Gravatar\"><\/span>Can users upload their own avatar without Gravatar?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Yes, with a local avatar plugin or a membership plugin that supports profile pictures.<\/p>\n<p>What avatar size do you use? Tell us in the comments.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Want bigger or smaller profile pictures in your comments? I once tried to enlarge the avatar size in WordPress comments&#8230;<\/p>\n","protected":false},"author":4,"featured_media":64078,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","footnotes":""},"categories":[6],"tags":[49,17],"class_list":["post-17037","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blogging","tag-tutorials","tag-wordpress"],"_links":{"self":[{"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/posts\/17037","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/comments?post=17037"}],"version-history":[{"count":1,"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/posts\/17037\/revisions"}],"predecessor-version":[{"id":64079,"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/posts\/17037\/revisions\/64079"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/media\/64078"}],"wp:attachment":[{"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/media?parent=17037"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/categories?post=17037"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/tags?post=17037"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}