skip to Main Content

My WordPress website is generating thumbnails for my images I want to prevent WordPress from doing that how can I achieve the same?

3

Answers


  1. Consider searching for these particular problems, because this took me 5 seconds to find this plugin: https://wordpress.org/plugins/disable-generate-thumbnails/

    Login or Signup to reply.
  2. You can follow these steps for the same :

    Step 1: In Admin Panel Go to Settings -> Media.

    Step 2: Now Uncheck (Crop thumbnail) If it’s Checked.

    Step 3: Set at Thumbnail size, Medium size, and Large size the Width and Height to

    Login or Signup to reply.
  3. You may use the remove_image_size() method like so:

    add_action( 'init', 'so_73173777_remove_image_sizes' );
    function so_73173777_remove_image_sizes() {
        remove_image_size( '1200' );
        remove_image_size( 'portfolio-full' );
        remove_image_size( 'blog-medium' );
        
        /* etc ... */
    }
    

    For removing default WP sizes:

    add_filter( 'intermediate_image_sizes_advanced', 'so_73173777_remove_core_sizes' );
    // This will remove the default image sizes and the medium_large size.
    function so_73173777_remove_core_sizes( $sizes ) {
        unset( $sizes['small']);
        unset( $sizes['medium']);
        unset( $sizes['large']);
        unset( $sizes['medium_large']);
        return $sizes;
    }
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search