disable cropping of my featured images in the home page

Hello Support,
I’m writing this ticket because all the solutions I’ve found on Internet didn’t work.
I want to disable cropping on my featured images. I’ve succeed with my image in the article itself but not in the home page.
See the code of my file function.php :
add_image_size( ‘activello-featured’, 9999, 9999, true );
add_image_size( ‘activello-slider’, 1920, 550, true );
add_image_size( ‘activello-thumbnail’, 330, 220, true );
add_image_size( ‘activello-medium’, 640, 480, true );
add_image_size( ‘activello-big’, 710, 335, true );
I don’t understand why it works for the article but not in the home page. I tried to deactivate all pluggings that could be in conflict (EWWW Image Optimizer, Imsanity and force generate thumbnail). But it changes nothing.

Thanks for your help.
Lilirose

Hey there

Than you for question, please check this link with solution:

Hello !
Thanks for the quick answer !
I already test this solution. I haven’t a child theme (but i’m interested in). It didn’t worked for me :frowning:
Best regards.

Hello there,

I hope you are doing well today.

You can use this plugin to make a child theme:

You can change the following code to change the featured image:

add_image_size( ‘activello-featured’, 9999, 9999, true );
add_image_size( ‘activello-slider’, 1920, 550, true );

Best Regards,
Support

Hi,
Thank you so much, it works ! I had to create a child theme for it, but it’s really simple with the pluging and it’s better for the blog.
You can close the ticket.
Best regards.
Lilirose

I will close this case now, Feel free to contact us again if you have other questions Thanks!