X Theme creating several image sizes

Hi all,

X seems to be creating lots of sizes of media when we are using it. If we turn off X and use a very basic theme Wordpress creates 4 versions (plus the original) of the media file whereas when we turn X back on suddenly there are 10-11 sizes of an image created.

As we only really import images using cornerstone and its image element it always selects the largest original image anyway so all these sizes are pointless.

Can we turn the creation off somehow or are they necessary? For smaller websites we create it is not an issue but we have a client with over 10,000 unique images each with 10 versions!

Thanks
Mark

Hello There,

X Theme only generates 5 size of images.
All of these were being used in the theme. In the featured image depending on the site layout whether fullwidth or not. If you want to remove these images sizes, you can insert the following code in your child theme’s functions.php file

// Remove X Image Sizes
// =============================================================================
add_action('wp', 'remove_x_image_sizes');
function remove_x_image_sizes() {
  remove_image_size('post-thumbnails');
  remove_image_size('entry');
  remove_image_size('entry-cropped');
  remove_image_size('entry-fullwidth');
  remove_image_size('entry-cropped-fullwidth');
}
// =============================================================================

Hope this helps.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.