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?