-
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
Classic menus are not selectable in existing Navigation block requiring user to create a new Navigation block #38166
Comments
This issue was found after @m asked how to select existing (classic) menu in TT2's header after upgrading. This issue is problematic for 5.9 in that users will be confused as to what to do next in order to select their existing menus. The UI does not guide them. How will they know? Possible solution: add the Classic Menus section on existing Navigation blocks. Severity: major blocker for existing users upon upgrading to 5.9 and using a block theme. As this is severe, if fixable in the next 14-19 hours, a 5.9 RC4 is possible. |
Is there something that the theme can do to make this more automatic? For example, can Twenty Twenty-Two automatically pull in your classic "Primary" menu for the main nav if present? And fall back to the page list if not? Would that be a good idea? |
@kjellr Yes, that would be a better experience IMO for users when first upgrading to TT2. It doesn't resolve the issue fixed in this ticket, but it does save users a step in their upgrade process. |
Yeah, I just don't think it's possible, unless there's markup I'm missing. 😅 cc @talldan for a gut check on that — I'll open up a separate issue if you don't know of anything. |
A quick followup on this: It looks like the |
@kjellr There's no current way to do this, unfortunately. The plan at the moment is to switch the Navigation block to using slugs for menus. I would hope it will then be possible for a theme to define the block like this: <!-- wp:navigation { "ref": "header-navigation" } -->
<!-- wp:page-list /-->
<!-- /wp:navigation --> Then, if a 'header-navigation' menu already exists it'll be used instead of the predefined theme inner blocks. If not, the block will fallback to the inner blocks in the template. I think we need a new issue for this, the previous discussion was in a closed issue - #36524. There is also a PR - #36522. I'll make one. |
Description
User story: As a user, I expect to be able to select a classic menu within an existing navigation block.
The "Classic Menus" section does not appear in an existing Navigation's block "Select Menu". Rather, it only appears in adding a new nav block.
Why is this a problem?
How will a user know that they must first delete an existing nav block and then insert a new one in order to select one of their existing (classic) menu?
Think of the user who is first upgrading to WordPress 5.9, has existing menus, and then activates a block theme such as Twenty Twenty-Two (TT2). With say TT2, the header menu by default upon activation is a page listing. So the user does these steps:
👉 How does the user know what to do next?
The next steps are:
What happens if they select the wrong one?
Repeat steps 4-6.
The expected behavior is: Steps 1-3 and then classic menus are shown and selectable.
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
Environment info
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: