Support Forum

Please login to receive premium support.

Support for the free plugin can be found here.

Home Forums Pro Support Featured post image size vs other images Reply To: Featured post image size vs other images

#11933
Tom
Keymaster

Can you try this?:

add_filter( 'wpsp_image_attributes', function( $atts ) {
    // Set up our conditional
    if ( in_array( 'featured-column', get_post_class() ) ) {
        $atts[ 'width' ] = 1200;
        $atts[ 'height' ] = 400;
        $atts[ 'crop' ] = true;
    }

    // Return our options
    return $atts;
} );