How to remove thumbnail sizes for specific post type on a child theme?

The theme I’m using includes a slideshow that generates an additional 4 image sizes for every image that is uploaded. I don’t need to have all those images being generated for every image.

Is there a way to remove the slideshow thumbnail sizes for a custom post type in my child theme?

Thanks

2 Answers
2

I think it might be possible, try adding this to your child theme’s functions.php

 add_action('init', 'remove_plugin_image_sizes');

function remove_plugin_image_sizes() {
    remove_image_size('image-name');
}

Here is the documentation: https://codex.wordpress.org/Function_Reference/remove_image_size

Leave a Comment