Skip to content

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

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

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
Copy Markdown
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
Copy Markdown

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.

@bph
Copy link
Copy Markdown
Contributor

bph commented Apr 21, 2026

The site editor can take care of things as @carolinan suggested or my cloning the Twenty-Twenty-five. I think this can be closed. One can also create the theme with the right alignment settings and make it the starter theme for an agency team or a theme shop. The blank theme should be as plain as possible.

@bph bph closed this Apr 21, 2026
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.

3 participants