Site logo

[Support request] Images default to ‘thumbnail’ when changing from classic to gutenberg

Home Forums Support [Support request] Images default to ‘thumbnail’ when changing from classic to gutenberg

Home Forums Support Images default to ‘thumbnail’ when changing from classic to gutenberg

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #2559939
    Jo

    Hi, I have 2 websites with the same issue. When I convert old ‘classic’ posts to ‘Gutenberg’, the images in the post change to ‘thumbnail’. To get them back to their original size, I have to delete the image and re-add it through the media library. I have tried simply changing the image size in each block. It changes in terms of the name but the image shown is still thumbnail. This is site wide across 2 sites, so hundreds of images. I therefore can’t do it manually. I have checked the media attachment size in customise and it is ‘full’ for one site and ‘medium large’ for the other. Is there a fix for this? Thanks!

    #2560032
    David
    Staff
    Customer Support

    Hi there,

    he settings in the Customizer > Layout > Blog Are solely for the Featured Images if the theme is displaying them.
    it has no control over what WordPress does when convert to blocks, swaps an image out for an image block.

    i had a look around to see if there were any other issues like this.The
    This is the closest match i found that shows convert to blocks breaking image sizes was this:

    https://github.com/WordPress/gutenberg/issues/35050

    Not sure its related, but might be worth checking the images HTML.

    One thing to try, although i am not sure this will work when converting blocks, is to set the Image Blocks default size to full using this PHP Snippet:

    function set_default_image_size() {
        update_option('image_default_size', 'full');
    }
    add_action('after_setup_theme', 'set_default_image_size');
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.