How do I change default avatar image size?

edited November 2015 in Questions
Good day

How do I change the default avatar image size? currently when I try to use the "get_avatar" short code with a custom size injected, it doesn't change the avatar image to 170 X 170 but instead gives me an image with size of 50 X 50.

For example when I use this WordPress built in function "get_avatar($curauth->ID, 170)" with a custom size of 170 injected. I receive back an avatar image with size of 50 X 50.

Do you have a hook I can use to solve this problem?

Best Answer

  • Fred_PinelFred_PinelMember
    Answer ✓
    First, check the OneAll setting for If the user's social network profile has an avatar, should this avatar be used as default avatar for the user?, this impacts the avatar image size.
    Also, are you using BuddyPress? If you are, then our filter will call their get_avatar code (they seem to set some max values for thumbnail size to 50x50).

    Hope this helps.



Please sign in to your OneAll account to ask a new question or to contribute to the discussions.

Please click on the link below to connect to the forum with your OneAll account.