/**
* BuddyPress Custom Avatar Dimensions
*
* This configuration enhances the quality of BuddyPress member avatars by defining
* custom dimensions. Place these definitions in your theme's functions.php file.
* Adjust the width and height values to suit your site's design and quality requirements.
*/
// Define custom thumbnail width for BuddyPress avatars if not already set
if ( ! defined( 'BP_AVATAR_THUMB_WIDTH' ) ) {
define( 'BP_AVATAR_THUMB_WIDTH', 100 ); // Change this to your desired thumb width
}
// Define custom thumbnail height for BuddyPress avatars if not already set
if ( ! defined( 'BP_AVATAR_THUMB_HEIGHT' ) ) {
define( 'BP_AVATAR_THUMB_HEIGHT', 100 ); // Change this to your desired thumb height
}
// Define custom full-size width for BuddyPress avatars if not already set
if ( ! defined( 'BP_AVATAR_FULL_WIDTH' ) ) {
define( 'BP_AVATAR_FULL_WIDTH', 300 ); // Change this to your desired full avatar width
}
// Define custom full-size height for BuddyPress avatars if not already set
if ( ! defined( 'BP_AVATAR_FULL_HEIGHT' ) ) {
define( 'BP_AVATAR_FULL_HEIGHT', 300 ); // Change this to your desired full avatar height
}
/**
* Usage Guide:
* 1. Insert this code in your theme's functions.php file.
* 2. Modify the dimensions (width and height) to match your desired avatar size.
* 3. Ensure your theme's CSS accommodates these new sizes appropriately.
*/
Comments