Remove HT Mega Image Sizes

Question:

Since I use this plugin every time I add an image in Elementor, in the “Image Size” drop-down, I see three new options: “Htmega Size 585×295, Htmega Size 1170×536, Htmega Size 396×360”.

How can I make them not appear anymore? The plugin creates three images of different sizes that I do not want.

Answer: 

You can remove the image sizes declared by HT Plugins easily, by adding below code in your active theme’s functions.php file

// Remove HT Mega Image sizes
add_action('init', 'remove_plugin_image_sizes');
function remove_plugin_image_sizes() {
	remove_image_size('htmega_size_585x295');
	remove_image_size('htmega_size_1170x536');
	remove_image_size('htmega_size_396x360');
}

Leave a Comment

Scroll to Top