Custom BuddyPress avartar sizes?
Not sure why this keeps disappearing? Its getting frustrating to keep reposting this, lol.
Anyways, lets try again.
I have been reading a lot about custom Avatar sizes in BuddyPress but have not found an answer to this. I am hoping to find out if there is a way in BuddyPress to actually create custom avatar sizes like I do in WordPress?
Example: in WP we simply do this for new custom sizes
add_theme_support( 'post-thumbnails' );
add_image_size( 'sidebar-thumb', 120, 120, true ); // Hard Crop Mode
add_image_size( 'homepage-thumb', 220, 180 ); // Soft Crop Mode
add_image_size( 'singlepost-thumb', 590, 9999 ); // Unlimited Height Mode
<?php the_post_thumbnail( 'your-specified-image-size' ); ?>
Is there a way to do something similar in BuddyPress? It would make life SOOOOO much easier if we can do something similar to this.
add_theme_support( 'custom-avatar-sizes' );
add_avatar_size( 'profile-avatar', 120, 120, true ); // Hard Crop Mode
add_avatar_size( 'members-loop-avatar', 220, 180 ); // Soft Crop Mode
add_avatar_size( 'forums-avatar', 590, 9999 ); // Unlimited Height Mode
<?php the_avatar_img( 'profile-avatar' ); ?>
I know that I can edit the sizes inline and I know that I can create custom css for this but its normally not reliable and its not very flexible.
Is there a way to do anything like this in BuddyPress?
- You must be logged in to reply to this topic.