-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wide/Full alignment options no longer appear on blocks with Gutenberg 11.2 whilst using theme.json #33876
Comments
Thank you for creating this issue @paulwilde, I'm running into the same issue: |
I'm running into the same issue. Going back to the blog post from last week on layout and content width for WordPress 5.8 I understood that: https://make.wordpress.org/core/2021/06/29/on-layout-and-content-width-in-wordpress-5-8/
I tested both settings, layout inherit true and false but both times the Group block stays in the theme's contentSize. I don't think this is the intended behaviour or are we missing something here? |
This has been explained by @youknowriad at #33374 (comment)
Then you can do the following:
Our team decided to abandon the use of theme.json for now and to revert back to |
If you define theme.json layout, top level items should get the alignments options though. (I mean without a group) |
@youknowriad I'm afraid that's not what I observed. Another inconvenience is that you have to set alignment options for all individual inner blocks which can be quite a daunting task. |
I'm looking into the regression.
For this, unfortunately, there's no solution that meets all the layout requirements (explantation you shared on the other issue) |
I can confirm that in 11.1.0 it works as @youknowriad says – the top level blocks have possibility of the alignment. It doesn't work only in 11.2.0 EDIT: I was wrong. In 11.1.0 it does not seem to work either on the top level when using theme.json |
Is there an existing issue for this?
Have you tried deactivating all plugins except Gutenberg?
Have you tried replicating the bug using a default theme e.g. Twenty Twenty?
Description
I have a custom-built theme that is using
theme.json
to set block colours etc.Here is a snippet of the
theme.json
I was using in 11.1 to get the full width options to appear on the block:Removing the
theme.json
file and usingadd_theme_support( 'align-wide' );
makes the options re-appear with 11.2, but they otherwise don't exist.Given the possibility I haven't set it up correctly or something changed in 11.2 with how the options are enabled when using
theme.json
, I suspect the possible culprit to this regression could be #33359.WordPress Information
5.8.0.
Gutenberg Information
11.2.
The text was updated successfully, but these errors were encountered: