-
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 shows the static page from "Your homepage displays" setting even though Front Page template is used #82910
Comments
Yes, I can confirm this behavior with the Enroute theme as well, for both Simple and Atomic sites. |
📌 REPRODUCTION RESULTS
📌 FINDINGS/SCREENSHOTS/VIDEO This is reproducible in a self-hosted environment, not just in WordPress.com. Tested with theme Kigen. I think this boils down to confusing relationship(s) between block themes, Reading Settings, and then specific themes that have a Front Page template. I don't see a specific issue about this in /gutenberg at the moment, but there are many that reference these relationships needing improvement. Self-Hosted - Gutenberg 16.8.1 & 16.7.1 exhibit this behavior 749Q7X.mov📌 ACTIONS |
Corresponding Gutenberg issue: |
Ran into an instance of this in 7363302-zd-a8c. Seems it's been fixed in WordPress/gutenberg#56418, just waiting on that to be released with Gutenberg 17.2 it looks like. |
Support References This comment is automatically generated. Please do not edit it.
|
The core issue (#56267) has been marked as fixed, but I'm not sure if it's fixed here. I'm also a bit confused about what you're expecting. You select a page as your front page, but then don't expect that to be the front page in the Site Editor? |
Not when the front_page.html template is active. This template should “be” the Homepage regardless of any assigned regular page. So when you go to the Site Editor, you should be seeing the Front Page template content, not the assigned page content. The reason to assign a page is to gain access to things like setting the featured image on the Homepage when it is “content in template”. |
Got it! In this case though, the original issue was resolved: WordPress/gutenberg#56418 I just tested and can confirm it works correctly now. |
Quick summary
When a Front Page template is used (active) in the site, it will be always used as the site homepage. So, opening the Site Editor by default should always show this template.
However, when we set the Settings -> Reading -> "Your homepage displays" to a static page, opening the Site Editor will open that static page, which is unexpected. Even worse, clicking the "Edit template" link (which appears when we click on any editable area of the editor) will open the
Pages
template, notFront Page
template.So, the only way to edit the homepage (i.e. the Front Page template) is to open the template manually in the Templates menu.
This is a regression; this used to be correct before. This does not happen in Core. @tanjoymor has a guesstimate of the timing when it possibly started breaking, in a previous discussion where a related issue happened (#81928)
cc: @Automattic/lego
Steps to reproduce
--Default--
(for example, the About page). Click "Save settings".What you expected to happen
The Front Page template should be shown.
What actually happened
The About page is shown instead.
Impact
Some (< 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: