-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Header and footer patterns not working as expected in 6.6 #64166
Comments
Good day, folks. I just wanted to highlight that in all our training videos we have taught users that they can replace a pattern by clicking on the three vertical dots. |
Thank you for the reporting. I was testing this. |
Correct. The patterns in the list of designs should also appear below 'Existing template parts' when you click on Replace.
Agreed, thank you. We have already received queries about this. As mentioned, our resources on Learn.WordPress.org also teach folks this method of replacing a template part pattern. |
After investigating this issue, we discovered that the current behavior is intentional, and that #60203 changed the behavior. The purpose of this PR seems to be to clearly separate replacing template parts from selecting new patterns. That said, I can't deny that the current behavior causes confusion for users. @WordPress/gutenberg-design @scruffian Do you have any feedback on this? |
Yes this is intentional, and I understand how it's confusing. There's a lot of conceptual overlap but these are separate flows... to clarify:
I don't think it helps that editing template parts is a different experience depending on context:
I would like to see the post/page editor experience applied in the template editor too. IE when you're editing a template:
Only when editing the template part in isolation should the Design panel appear. This (hopefully) makes it clear that the options therein apply specifically to the template part. What do y'all think? |
Thank you for the detailed feedback!
My sense is that the word "Replace" is fine as is, but I find it a little confusing what modal means: What about this?
I don’t have a strong opinion on what context the Design panel should appear in, but to me, the panel itself seems a bit too abstract. Since the only information provided to the user is the title "Design" and pattern previews, it may not be immediately clear that this panel "updates the blocks in the template part with the selected block pattern". Therefore, I thought it might be useful to add some help description. |
Both good suggestions, and small tweaks we can make in the near-term to patch up some shortcomings 👍 |
Related to this issue, the Design panel may need a visible pattern label. |
Description
Header and footer patterns in WordPress are not functioning as expected. When you select a header or footer on a Page and select Replace, you can't replace it with a pattern - only existing template parts show up. Additionally, when you select a header or footer within a template, you can Replace it by choosing from patterns in the Settings sidebar. However, when you click on the three vertical dots in the List View and select "Replace," only existing template parts are displayed—patterns are not shown as expected, contrary to how we have taught users.
In both cases, Patterns should appear below Existing template parts.
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
Screen.Recording.2024-08-01.at.9.55.03.PM.mov
Environment info
Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except Gutenberg.
The text was updated successfully, but these errors were encountered: