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
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