Support

Account

Home Forums Gutenberg sizeSlug not working in InnerBlocks template

Unread

sizeSlug not working in InnerBlocks template

  • Hi everyone.

    I have this InnerBlocks template:


    // InnerBlocks template
    $template = [
    [
    'my-blocks/banner',
    ],
    [
    'core/image',
    [
    'align' => 'center',
    'sizeSlug' => 'medium',
    'linkDestination' => 'none',
    ]
    ],
    ];

    In the Gutenberg editor, an area where I can upload an image is displayed, so far so good. But when I upload an image, the image is not resized to the specified sizeSlug (‘medium’). Instead “resolution” in the sidebar Block tab defaults to “Full Size”.

    Any ideas why this is? Is this a misunderstanding on my part of the sizeSlug attribute or is something broken?

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.