• Hey! I have a strange problem I can’t seem to find a solution. In the functions.php we change the specs of the “medium” size like this

    function imagesizes_nf() {
    update_option('thumbnail_size_w', 350);
    update_option('thumbnail_size_h', 0);
    update_option('thumbnail_crop', 0);

    update_option('medium_size_w', 480);
    update_option('medium_size_h', 270);
    update_option('medium_crop', 1);

    add_image_size('single', 1920, 600, true);
    remove_image_size('2048x2048');
    remove_image_size('1536x1536');
    }
    add_action( 'after_setup_theme', 'imagesizes_nf' );

    For the other sizes we are changing this works great. But there seems to be a problem with “medium”. When we start regenerating thumbnails and delete old sizes, “medium” gets deleted. If I then regenerate everything it does generate the size “medium” but immediately sees it as an old size (see screenshot).

    Anybody has an idea why that could be?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter naturfreundeschweiz

    (@naturfreundeschweiz)

    I can’t edit my post above but jsut to add: I dont get an error in the browser console while regenerating or after.

    Plugin Support Cara

    (@dcka)

    @naturfreundeschweiz Before changing the size of the medium thumbnail in your functions.php file, can you let me know if you already tried changing it just from WP Admin > Settings > Media? If not, can you see if that makes a difference?

    Thread Starter naturfreundeschweiz

    (@naturfreundeschweiz)

    Thank you for your response.

    I did not try to change it from WP Admin > Settings > Media since there is no crop option. But I just know tried to remove the update_option from the functions.php and set everything in the media menu. Unfortunately it seems to make no difference and the size “medium” is portrayed as red but it does make an “medium (old)”

    Plugin Support Eric Gunawan

    (@erricgunawan)

    Could it be that you have another function or code that define (or remove) the medium size?

    A code that might have come from your theme or other plugins on the site?

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