Skip to content

Gallery: dimension options not available for many themes #46545

@ricjcs

Description

@ricjcs

Description

Dimension options, which include block spacing, among others, do not appear in the block gallery settings in several themes, such as "Twenty Seventeen". I think this happens in themes (but not all) that are not prepared for full site editor.

In the source code if I manually put the block spacing like this: <!-- wp:gallery {"linkTo":"none","style":{"spacing":{"blockGap":{"top":"5px","left":"5px"}}}} -->, works perfectly fine in the theme. So these options are not incompatible with the theme, so I think they should appear in the settings.

Step-by-step reproduction instructions

  1. Install the Twenty Seventeen Theme
  2. Add or edit a post
  3. Add a gallery block with some images
  4. Check that the dimension options do not appear in the gallery block settings

Screenshots, screen recording, code snippet

Gallery block settings in the Twenty Seventeen theme:
Captura de ecrã 2022-12-14 135755

Gallery block settings in the Twenty Twenty-Three theme:
Captura de ecrã 2022-12-14 140106

Environment info

  • Wordpress 6.1.1 without Gutenberg
  • Wordpress 6.1.1 with Gutenberg 14.7.2

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Feature] ThemesQuestions or issues with incorporating or styling blocks in a theme.[Type] EnhancementA suggestion for improvement.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions