Gravatar – bbird.me http://bbird.me WordPress quick tips Wed, 08 Aug 2018 16:39:07 +0000 en-US hourly 1 https://wordpress.org/?v=4.9.8 How to change Gravatar size in WordPress http://bbird.me/how-to-change-gravatar-size-in-wordpress/ http://bbird.me/how-to-change-gravatar-size-in-wordpress/#respond Wed, 22 Jul 2015 21:27:11 +0000 http://bbird.me/?p=187 For listing comments in your comments template in WordPress theme, you will use wp_list_comments() function. It accepts several parameters, and one of

Post How to change Gravatar size in WordPress je prvi puta viđen na bbird.me.

]]>
For listing comments in your comments template in WordPress theme, you will use wp_list_comments() function. It accepts several parameters, and one of them is avatar_size. Default avatar size is 32 which may appear too small, depending on how your theme is designed. Thankfully, you can easily change this by changing avatar_size within functions’ array:

<?php    
    wp_list_comments( array(
       'avatar_size'       => 120,
            
    ));
?>

How big can Gravatar be? The simple answer is – big enough. If you check on Gravatars’ documentation, you will find that it goes up to 2048px pixels, which is quite enough. But when choosing the size, you should remember that many Gravatar images (even in smartphone era – or because of it?) are of lower quality, so anything between 100 and 200 might be, in my humble opinion, the best choice.

Post How to change Gravatar size in WordPress je prvi puta viđen na bbird.me.

]]>
http://bbird.me/how-to-change-gravatar-size-in-wordpress/feed/ 0