Stop creating unused image sizes
Hi there, I wouuld like to remove Theme Support for all the Image sizes which are used by the Theme.
According to the WP docs it is possible to remove support via child-theme functions.php like so:
add_action( 'after_setup_theme', 'remove_featured_images_from_child_theme', 11 );
function remove_featured_images_from_child_theme() {
remove_theme_support( 'medium_large');
remove_theme_support( 'blog-portfolio' );
remove_theme_support( 'blog-single' );
}
But this ist not working. Is there another way to do this?
Best, Chris
add_action( 'after_setup_theme', 'remove_featured_images_from_child_theme', 11 );
function remove_featured_images_from_child_theme() {
remove_theme_support( 'medium_large');
remove_theme_support( 'blog-portfolio' );
remove_theme_support( 'blog-single' );
}
But this ist not working. Is there another way to do this?
Best, Chris
Comments