The WP Team Manager plugin allows you to define custom image sizes for team members. You can modify these image sizes using the wp_team_manager_image_sizes filter to ensure that team member images fit perfectly within your website’s design.
Step 1: Understanding the Default Image Sizes
By default, WP Team Manager supports the following image sizes:
• Medium – Standard WordPress medium-sized image.
• Thumbnail – Small-sized image, ideal for lists or small sections.
• Medium Large – A slightly larger version of the medium image.
• Large – A full-width image for larger displays.
• Full – The original uploaded image without resizing.
These sizes are used when displaying team members in grid, list, slider, or table layouts.
Step 2: How to Modify Image Sizes
If you want to customize the available image sizes, you can use the wp_team_manager_image_sizes filter.
Example: Adding a Custom Image Size
To add a custom image size (e.g., “custom-size”) and make it available in the settings dropdown:
1. Open your theme’s functions.php file.
2. Add the following code:
function custom_wp_team_manager_image_sizes($sizes) {
$sizes['custom-size'] = __('Custom Size', 'wp-team-manager');
return $sizes;
}
add_filter('wp_team_manager_image_sizes','custom_wp_team_manager_image_sizes');
3. Save the file and refresh your WP Team Manager settings page.
4. Your new size “Custom Size” will now appear as an option.
Step 3: Changing the Default Image Size
To set a different default image size, navigate to:
1. WordPress Admin Dashboard → WP Team Manager → Settings.
2. Locate the “Image Size” dropdown.
3. Select your preferred size from the list.
4. Click “Save Changes”.
This ensures that team member images are displayed consistently across your site.
Step 4: Ensuring Proper Image Generation
If you’ve added a new image size but it’s not appearing, follow these steps:
1. Regenerate Thumbnails: Use the Regenerate Thumbnails plugin to apply new sizes to previously uploaded images.
2. Verify the Theme or Page Builder Compatibility: Ensure your theme supports the selected image size.