Support » Plugin: Simple Local Avatars » Possible to show larger image?

  • Hi,

    I used the plugin ‘WP User Avatar’, but their recent update added a lot of functionality and bloat I don’t want.

    I checked your plugin as a replacement, and found that it resizes and shows the image as a 96×96 thumbnail. I’d like it to show the orginal image size that has been uploaded. Is there a way to do that?


Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Tung Du


    Hi @jpnl,

    You can set the size argument in your get_avatar calls to full to show the avatar using the original image size.

    Hope this helps!

    Thanks @dinhtungdu,

    I use the Divi theme builder and use the dynamic field option to get the ‘Author profile picture’. There is no option to set get_avatar.

    More ideas?


    Plugin Support Tung Du



    You can try changing the avatar size using pre_get_avatar_data:

    add_filter( 'pre_get_avatar_data', function( $args ) {
    	$args['size'] = 'full';
    	return $args;
    }, 5 );

    If the code above doesn’t work, you should contact Divi support and ask them for a way to change the avatar size. (I don’t have experience working with Divi).

    Simple Local Avatars filter the avatar data, so it inherits the settings of the default avatar. Changing the size of the default avatar will change the size of the local avatar.

    Brilliant, that works.

    Thank you!



    The code suggested by Tung Du worked for me too! Thank you!

    P.S You need to put the code above to functions.php file of your child theme.

    The script seemed to work, but I could not seem to use any other WP size other than the full size. I found that it worked for square images if I change “size” to “type”, however, I have not found a way to have it use images other than a square, like “medium” which in my case is 450×600. Here’s what I have:

    `add_filter( ‘pre_get_avatar_data’, function( $args ) {
    $args[‘type’] = ‘medium’;
    return $args;
    }, 5 );
    if (is_author()){
    $author = get_queried_object();
    $author_id = $author->ID;
    echo get_avatar( $author_id, 450 );`

    Any ideas?

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.