You can change the default avatar size with some codes in BuddyPress. There are two methods to put the code in:
- Either in
function.php
file located in your core Themes folder. - Or you would have to create a
bp-custom.php
file in your wp-content/plugins/ directory.
Now after you know where to paste the code, the following code will be used to change the default avatar size:
if ( ! defined( 'BP_AVATAR_THUMB_WIDTH' ) )
define( 'BP_AVATAR_THUMB_WIDTH', 50 ); //change this with your desired thumb width
if ( ! defined( 'BP_AVATAR_THUMB_HEIGHT' ) )
define( 'BP_AVATAR_THUMB_HEIGHT', 50 ); //change this with your desired thumb height
if ( ! defined( 'BP_AVATAR_FULL_WIDTH' ) )
define( 'BP_AVATAR_FULL_WIDTH', 260 ); //change this with your desired full size
if ( ! defined( 'BP_AVATAR_FULL_HEIGHT' ) )
define( 'BP_AVATAR_FULL_HEIGHT', 260 ); //change this to default height for full avatar
Now try to upload an avatar the changes will be observable.