-
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
Pattern Placeholder blocking editing of template parts in site editor #79145
Comments
FYI this was escalated internally by OP here: p1688757944597679-slack-C02FMH4G8 📌 Message to Author
|
More info:
Tested the following theme switches:
|
Support References This comment is automatically generated. Please do not edit it.
|
Themes where we saw this: Appleton, jinjang, Barnett
cc @cuemarie 👍 |
I also could not reproduce this on a jurassic ninja selfhosted instance with WP 6.2.2 and NO plugins (or just Gutenberg 16.1.2). Ran into a thread of reports: |
I've ran into this here: https://wordpress.com/forums/topic/editor-not-showing-section-on-index-page/ Theme: Bitácora On this theme, the workaround of editing the footer and header in the page editor doesn't seem to work. |
6520328-zen - Issue appeared for after switching from Boutique to Yuga on an Atomic site. |
pdEkSe-3PS-p2 using the Russell theme. |
This only seems to happen when a template-part contains a pattern which includes The intention of us adding that header is to hide patterns that aren't relevant to the post editor from the post editor. I think we could just temporarily remove that while we investigate. The issue can also be reproduced on a dotorg site using the latest GB release if you change a dotorg theme like TT3 to make one of the patterns include a Post Types header like this one. |
6522285-zd-woothemes Theme is Tenaz Simple site, switched from a classic them to FSE. |
@dsas It definitely seems related to ETK. When I activate it on an Atomic Site (GB 16.1.2), this is what I get: The block that isn't rendering is not on the Header, ignore it. And this is without ETK: |
Bumping the priority to high, since it's affecting both types of WordPress.com sites and the workaround at difficult to implement. cc @cuemarie |
We were adding post types to all registered patterns based upon their block type, however this is causing issues when trying to edit template parts which include those patterns. This change stops doing that while we investigate the issue. See #79145
The root cause is the site editor only allows the pattern with the specific post types but it doesn’t pass the current template type to the hook. Hence, the pattern with the post types will be filtered out and becomes placeholder pattern. |
We were adding post types to all registered patterns based upon their block type, however this is causing issues when trying to edit template parts which include those patterns. This change stops doing that while we investigate the issue. See #79145
I deployed a change to stop triggering this issue a while ago and have deployed a new ETK version to dotorg. It'll be picked up on atomic sites within the hour. |
@dsas Thank you for that update! Checking in - looks like #79238 is merged, but WordPress/gutenberg#52503 is not yet, so I don't want to jump to conclusions. |
Yeah it's not a problem on dotcom right now because I disabled something obscure. I would like to keep this issue open so I remember to re-enable it when the GB PR makes its way back to dotcom. |
For pdEkSe-40P-p2 I'm encountering an issue where the "pattern placeholder" exists for the comments template part — comments are not rendering on Atomic, however just using the Comments block works fine. Caveat: I am using a child theme of TT3, however this was not an issue earlier. |
@metabreakr I doubt it's the same bug. I think it sounds like create-block-theme isn't exporting the pattern/template-part correctly. Are you comfortable checking that on a wporg site and raising a bug on https://github.com/WordPress/create-block-theme if so? if not I can do it. |
@dsas I was discussing this with a colleague and will see if I can reproduce this further with the parent TT3 active. For what its worth, with the child theme active, the Comments template part when removed/re-added renders blank. Editing it shows only the pattern placeholder. On the other hand, just using the Comments block renders correctly. |
📌 ACTIONS
@dsas WordPress/gutenberg#52503 should now be in Dotcom, so just pinging you in case you'd like to revert #79238 next. 👍 When that's all squared away, I think we should be able to close this out again |
I'm unsure if this is the same, but I'm experiencing something similar—some patterns in a theme don't appear in the editor. (they appear as pattern placeholders in the list view) It's only happening on simple sites, not atomic sites, not self-hosted sites. |
Hey folks. I just tried to replicate this on a simple site using the jinjang theme and wasn't able to replicate: can.t.replicate.editing.header.movInstead, I was able to edit the header in isolation without a problem. Further, from what I can see above, the Gutenberg PR to fix this was merged a long time ago: WordPress/gutenberg#52503 I think it's safe to say that without the ability to replicate nor any recent reports that we can close this out. Let me know if that was incorrect. |
Quick summary
Status: Work around in place, issue is being left open while root cause is addressed
There seems to be a bug in the site editor when editing a Header or Footer template part where you see Pattern Placeholder block, and you can’t edit.
This has been reported so far on simple sites, and on a range of themes.
Workaround: editing the template from the Page Editor works as expected.
Tasks
Steps to reproduce
What you expected to happen
To edit the blocks that are part of the template part
What actually happened
Can't see blocks, so can't edit.
Impact
Some (< 50%)
Available workarounds?
Yes, easy to implement
Platform (Simple and/or Atomic)
Simple
Logs or notes
No response
The text was updated successfully, but these errors were encountered: