Sunday, December 23, 2018

Changing default avatar size cropped/used by BuddyPress,

How to change BuddyPress Avatar Thumbnail size and Profile image:

1) create a bp-custom.php file in your wp-content/plugins directory.
2) add that codes
---

if ( ! defined( 'BP_AVATAR_THUMB_WIDTH' ) )
    define( 'BP_AVATAR_THUMB_WIDTH', 80 ); //change this with your desired thumb width

if ( ! defined( 'BP_AVATAR_THUMB_HEIGHT' ) )
    define( 'BP_AVATAR_THUMB_HEIGHT', 80 ); //change this with your desired thumb height

if ( ! defined( 'BP_AVATAR_FULL_WIDTH' ) )
    define( 'BP_AVATAR_FULL_WIDTH', 310 ); //change this with your desired full size,weel I changed it to 260 :)

if ( ! defined( 'BP_AVATAR_FULL_HEIGHT' ) )
    define( 'BP_AVATAR_FULL_HEIGHT', 310 ); //change this to default height for full avatar

?>
---
Thank You.

0 comments:

Post a Comment