Skip to content

Add full and wide width support for blank theme.#791

Open
torounit wants to merge 2 commits intoWordPress:trunkfrom
torounit:fix/align-full-support
Open

Add full and wide width support for blank theme.#791
torounit wants to merge 2 commits intoWordPress:trunkfrom
torounit:fix/align-full-support

Conversation

@torounit
Copy link
Member

@torounit torounit commented Dec 5, 2025

Add full and wide width support for blank theme.

This is achieved by setting the align property to full for blocks like the query block and post-template block. It uses the same method as “Twenty Twenty-Five”. (https://github.com/WordPress/twentytwentyfive/blob/trunk/patterns/template-query-loop.php)

Before After
before after

@carolinan
Copy link

Hi
Is there an issue for this? I'm not sure what changing the default solves and what the purpose is?

The template in the pull request does not result in a layout matching the "After" screenshot.
I don't agree that having the text edge to edge like in the screenshot is the better option, it is often considered more difficult to read the text.

If the parent container (group, query, post template) has "layout":{"type":"default"}, if "Inner blocks use content width" is toggled off, then setting align full on the child in the code will not do anything.
Align full and align wide are available when the layout type is constrained, when "Inner blocks use content width" is toggled on.

If what you wanted to achieve was to keep the content centered, at the expected content with, but allow for example a full width featured image, then use the current template and turn off "Inner blocks use content width" for the main group, the query, and the post template, and turn it on for the group that is inside the post template.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants