Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1314396

    Hello, my blog post image is getting cropped vertically. Is there any way to override the autosize?

    #1314398

    I just found this thread: https://kriesi.at/support/topic/featured-image-being-cropped/

    Is there any way to edit the functions.php in the child theme instead so it doesn’t get overwritten when updated?

    #1314998

    Hi,

    Refer to the following

    Best regards,
    Jordan Shannon

    #1315855

    Hi, this is just telling me how to add custom code to functions.php I think. Can you help me with what code to add here to make it so the image is not cropped vertically please? Thanks so much!

    #1316751

    Hi,
    Sorry for the very late reply and thank you for your patience, to remove the crop from those images in the child theme, add this code to the end of your functions.php file in Appearance ▸ Editor:

    	add_filter( 'avf_modify_thumb_size', 'enfold_customization_modify_thumb_size', 10, 1 );
    	function enfold_customization_modify_thumb_size( $size ) {
    			$size['entry_with_sidebar'] = array('width'=>845, 'height'=>321, 'crop' => false);
    			$size['entry_without_sidebar'] = array('width'=>1210, 'height'=>423, 'crop' => false);		
    		return $size;	
    	}

    Best regards,
    Mike

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.