Support » Theme: OceanWP » Added unwanted thumbnails since version 3.2.0

  • Resolved thomhsb



    After dozens of attempts on my side, and without news from you, I report again that despite the deactivation of all thumbnails (except one: woocommerce_single) in the functions.php of the child theme, I observe the creation of two unwanted thumbnails since version 3.2.0.

    If it’s possible that you don’t believe me, I did what you could have done yourself to see the problem: fresh installation of WordPress + Woocommerce with OceanWp + OceanExtra.

    I can send you the credentials and even ftp access in the upload directory so you can see for yourself that what I say is true. Just send me an email and I’ll send it to you.

    As a reminder:

    In the WordPress image size customization (Admin panel -> Settings -> Media), everything is at 0.

    In the OceanWP panel (Appearance > Customize > WooCommerce > Product Images > Thumbnail Width), the first field is set to 388 and the second to 0.

    In the functions.php of the child theme, this code :

    add_filter(‘woocommerce_background_image_regeneration’, ‘__return_false’);
    add_filter(‘intermediate_image_sizes_advanced’, function($sizes){
    unset($sizes[‘thumbnail’]); unset($sizes[‘medium’]);
    unset($sizes[‘medium_large’]); unset($sizes[‘large’]);

    // unset($sizes[‘woocommerce_single’]);

    return $sizes; });

    add_action( ‘init’, function() { remove_image_size( ‘1536×1536’ ); remove_image_size( ‘2048×2048’ ); });

    As long as I stay with version 3.1.4, I only have my original image + 1 thumbnail in 388 when I upload an image. Perfect.

    As soon as I switch to version 3.2.0 (and ditto with 3.2.1 and 3.2.2) two other thumbnails are created, one in 600×600 and the other in 800xratio

    These additional thumbnails are really not welcome in my project. I sincerely thank you to understand why this happens since version 3.2 because I would like to take advantage of the updates.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,

    Please add the below snippet code in the functions.php file of your child theme to fix the issue.

    function remove_extra_image_sizes() {
        foreach ( get_intermediate_image_sizes() as $size ) {
            if ( in_array( $size, array( 'ocean-thumb-m', 'ocean-thumb-ml', 'ocean-thumb-l' ) ) ) {
                remove_image_size( $size );
    add_action('init', 'remove_extra_image_sizes');
    Thread Starter thomhsb


    To inform potential readers of this ticket, this action fixes the problem.

    Thanks a lot Abhishek !

    You are most welcome and glad to hear that issue has been fixed.😊

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.