-
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
[WP6.2] Wide and full alignments are lost on the page using a custom template when switching block themes #48355
Comments
Thanks for submitting the ticket @mayuge3. I can reproduce this bug on my end. I also want to point out this was working fine on 6.1.1, so this is indeed a new bug. I also want to specify, the full width option doesn't even show on the first load in this template, but it does once switching, taking me to another thing I noticed. It might be unrelated to this bug (as this also happens in 6.1.1), but related to this subject, there seems to be something wrong with the Template label as well upon switching, it goes from Default Template to Page. template.switching.mov |
I can reproduce this issue on trunk, and @andrewserong already has a fix for it in #48386! |
The close the loop on this one — it appears the issue was that after switching themes, the currently set custom template is no longer available in the new theme, so the post editor was unable to retrieve the post content block from the current template, to determine which layout/alignment controls to display. It turns out there was a bug in the fallback logic for the layout/alignment rules, which should be resolved now that #48386 has landed. If the issue recurs, feel free to reopen this issue! 🙂 |
Alighments work in 6.2-beta4-55454 and Gutenberg plugin 15.2.4. |
Description
When I switch the active block theme, wide and full alignments are lost on the page using a custom template.
Maybe related to #48074 and #47477, but this also happens with default block themes such as TT2 and TT3.
Tested with WordPress 6.2 beta3 nightly.
Same result with/without Gutenberg plugin 15.2.
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
However, wide/full alignments are back if I change the template after switching theme:
Environment info
WordPress 6.2-beta3-55409 (latest nightly), instawp install
TT2 and TT3 included in nightly
Tested with and without Gutenberg plugin 15.2
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
The text was updated successfully, but these errors were encountered: