Skip to content

Add more choices to align supports #44653

@phil-sola

Description

@phil-sola

What problem does this address?

Currently, you can support align, or alignWide for your blocks which gives you one additional wrapper width for your block aside from the content width defined.

On almost every single site I have developed, there is more use of content widths than just default and wide. Normally, there will be a narrow block or component, occasionally an x-wide width and of course, full width which is supported already.

The current support options are too restrictive and only allow for one of 2 different widths (excluding full). When developing custom blocks, I cannot use the supports and end up going with a custom setting to give a better choice.

What is your proposed solution?

I would love to see the option to define support for other wrapper widths as well.

Given that it is an array of possible choices it would be great to add a couple more possibilities to this including narrow and extra wide. These should also be configurable via theme.json just like the content width and wide width currently.

If you didn't need or want a narrow or extra wide width, it could simply be excluded from the array of supported align settings.

(https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#align)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions