You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Block editor alignment controls disabled when Query block and Post Content block exist in same template #70856
When a template contains both a Query block and a Post Content block (regardless of nesting structure), the block editor incorrectly applies width constraints that disable alignment controls (alignwide/alignfull) for ALL Group blocks in the template. This appears to be related to the "abstracted view" logic that incorrectly triggers when detecting template complexity, but the constraint affects unrelated blocks beyond just the Query/Post Content combination.
Expected Behavior:
Group blocks should retain their alignment controls
Template complexity should not affect individual block alignment options
Editor should display proper wide/full alignment previews
Actual Behavior:
All Group block alignment controls disappear
Editor applies arbitrary width constraints
Frontend renders correctly, issue is editor-only
Workarounds:
Enable "Show template" toggle in editor (as mentioned in this issue, but losing widths controls if you don't does not seem an acceptable UX and was not mentioned in that issue).
Move Query or Post Content blocks to separate template parts
Use template parts to separate the conflicting blocks
Step-by-step reproduction instructions
Steps to Reproduce:
Create or edit a template (e.g., front-page.html) in the site editor
Add both a Query block and a Post Content block to the template
Try to select alignment options for any Group block in the template
Notice alignment controls are missing/disabled and max-width constraint (~620-850px) is applied
Screenshots, screen recording, code snippet
No response
Environment info
WordPress: 6.8.2
Gutenberg NOT installed.
Theme: Twenty Twenty-Five
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
Please confirm which theme type you used for testing.
Check Screencasts below to confirm if things are being done correctly
Actual Results
❌ Error condition is not ocurring
Additional Notes
Adding Query and Content blocks doesn't make a difference compared to adding just Content block. But I can't really see the alignment issue or the max width limitation.
@onetrev can you provide more precise information on how to reproduce this? Please check the screencasts and see what I could be missing.
Given that this is report is pretty new, I'm going to be adding for now the Needs More Info tag.
Hey @SirLouen thanks for reviewing this, so sorry to cause confusion and time loss -- my bug report missed a KEY detail. Probably because by the time I figured this all out I was stressed. :)
The reason you couldn't replicate this is because this happens the Block Editor not the Template Editor. As such, one workaround is to Enable "Show template" toggle. Not ideal. Hopefully that clears it up?
Help us move this issue forward. This issue is being marked stale since it has no activity after 15 days of requesting more information. Please add info requested so we can help move the issue forward. Note: The triage policy is to close stale issues that need more info and no response after 2 weeks.
I added additional information, but haven't heard anything in reply. This should not be marked "Stale" yet. Happy to provide any more details if needed...
Hey @shrivastavanolo thanks for the test
But I think you used the testing information in the OP post.
It seems that @onetrev suggested in this comment, that the test shall be done in the block editor, not in the template editor.
Hi,
This issue has gone 30 days without any activity. This means it is time for a check-in to make sure it is still relevant. If you are still experiencing this issue with the latest versions, you can help the project by responding to confirm the problem and by providing any updated reproduction steps.
Thanks for helping out.
Well, oddly I can no longer replicate this -- just when I finally had the chance to make a video of it. So I will close it for now, and re-open if it occurs again and I can video it. :)
Activity
SirLouen commentedon Jul 31, 2025
Reproduction Report
Description
❌ This report can't validate that the issue can be reproduced.
Environment
Testing Instructions
Actual Results
Additional Notes
Needs More Infotag.Supplemental Artifacts
onetrev commentedon Aug 1, 2025
Hey @SirLouen thanks for reviewing this, so sorry to cause confusion and time loss -- my bug report missed a KEY detail. Probably because by the time I figured this all out I was stressed. :)
The reason you couldn't replicate this is because this happens the Block Editor not the Template Editor. As such, one workaround is to Enable "Show template" toggle. Not ideal. Hopefully that clears it up?
github-actions commentedon Aug 19, 2025
Help us move this issue forward. This issue is being marked stale since it has no activity after 15 days of requesting more information. Please add info requested so we can help move the issue forward. Note: The triage policy is to close stale issues that need more info and no response after 2 weeks.
onetrev commentedon Aug 19, 2025
I added additional information, but haven't heard anything in reply. This should not be marked "Stale" yet. Happy to provide any more details if needed...
shrivastavanolo commentedon Sep 3, 2025
Tried reproducing this bug using the additional info provided
Reproduction Report
Description
❌ This report can't validate that the issue can be reproduced.
Environment
Steps to reproduce
Set up the template first (in Site Editor):
Reproduce the bug (in Block Editor):
Actual Results
Additional Notes
Supplemental Artifacts
Screen.Recording.2025-09-03.at.2.34.47.PM.mov
SirLouen commentedon Sep 3, 2025
Hey @shrivastavanolo thanks for the test
But I think you used the testing information in the OP post.
It seems that @onetrev suggested in this comment, that the test shall be done in the block editor, not in the template editor.
github-actions commentedon Oct 4, 2025
Hi,
This issue has gone 30 days without any activity. This means it is time for a check-in to make sure it is still relevant. If you are still experiencing this issue with the latest versions, you can help the project by responding to confirm the problem and by providing any updated reproduction steps.
Thanks for helping out.
onetrev commentedon Oct 12, 2025
Well, oddly I can no longer replicate this -- just when I finally had the chance to make a video of it. So I will close it for now, and re-open if it occurs again and I can video it. :)