-
Notifications
You must be signed in to change notification settings - Fork 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
Site Editor: certain themes fail to load static homepage content #88219
Comments
Here are my findings:
So the issue becomes what's the “CORRECT” post type when you open the side editor to edit a static homepage? |
Corresponding GB issue: WordPress/gutenberg#59634 Should we close this one? cc: @liviopv I am not sure |
@iamtakashi, based on the GB issue linked above, it looks like it's caused by the theme. Bedrock theme's Pages template consists of a single |
📌 REPRODUCTION RESULTS
Problem seen as per OP instructions. 📌 ACTIONSTriaged |
@fushar As far as I've tested, this approach is fine on self-hosted or Atomic sites. Something strange must be going on simple sites, and that should be fixed at the root rather than blaming or taking a different approach in the theme. Otherwise, WP.com will have more themes like this, and there is no way to stop themes from doing the same thing if they work elsewhere. In fact, this issue blocks Low Fi. |
Isn't this issue the same as #87770 ? |
Were you able to reproduce the issue on Atomic if the Gutengerg plugin is activated? Your screenshot seems that way. |
@iamtakashi I checked again and I can replicate in simple, Atomic, and self-hosted sites using the latest Gutenberg version (17.8.2 as of this report). See also @rickmgithub's comment above where he can replicate it on Atomic (which activates latest Gutenberg by default). So, this is not a dotcom-only bug. I'm not sure if Gutenberg breaks something or it's actually a "bugfix". One solution is to try older GB versions until we find the first version which introduced this behavior. cc: @annezazu
No, this is a different thing altogether. |
@fushar, My apologies, I spoke too soon. I thought it was the same issue as #87770. I can also replicate this issue in my local install with the Gutenberg trunk activated. I can't turn the We can open the page template by clicking it from the list in the editor, but we can't open it during the initial load. If I temporarily remove the header template part from the |
Edit: Sorry I misunderstood. |
I'll move the template parts out from the patterns and add them to the templates. |
I'm not sure when but it wasn't an issue until recently. Anyway, the linked PR above should fix the issue. |
Quick summary
When the homepage is set to show a static page, Site Editor will show blank page instead of the static page content. Only happens to certain themes. I tested Bedrock.
This issue is not reproduced on self-hosted site, or on Atomic sites which have Gutenberg plugin disabled.
The workaround is to edit the home page in Page Editor, but it might be not intuitive.
Steps to reproduce
What you expected to happen
The page content
What actually happened
I see blank page
Impact
Most (> 50%)
Available workarounds?
Yes, easy to implement
Platform (Simple and/or Atomic)
Simple, Atomic
Logs or notes
No response
The text was updated successfully, but these errors were encountered: