Co-Authors-Plus icon indicating copy to clipboard operation
Co-Authors-Plus copied to clipboard

Post featured image/thumbnail size is being used for avatars

Open manudavidos opened this issue 2 years ago • 3 comments

I have a theme that crops featured images and thumbnails. Because this plugin uses the featured image feature for avatars, all the guest avatars are also cropped according to my featured image sizing.

manudavidos avatar Jun 07 '22 20:06 manudavidos

Can you describe how your theme is cropping your featured image and thumbnails? Any bits of code would be helpful.

rebeccahum avatar Jun 08 '22 16:06 rebeccahum

/**
 * Post Thumbnails.
 */
if ( function_exists( 'add_theme_support' ) ) { 
    add_theme_support( 'post-thumbnails' );
    set_post_thumbnail_size( 400, 200, true ); // default Post Thumbnail dimensions (cropped)
    add_image_size( 'enjoyblog_featured_thumb', 880, 440, true );    
    add_image_size( 'enjoyblog_post_thumb', 480, 270, true );
}

Here is part of the code from functions.php that is cropping thumbnails

manudavidos avatar Jun 09 '22 08:06 manudavidos

Thanks for including this code.

Can you also share with us the code to display the guest avatars in your theme? This will help us understand what's going on.

DustinHartzler avatar Jun 27 '22 19:06 DustinHartzler