-
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
Fix navigation menus after Tsubaki headstart #69008
Comments
the nav post in the annotation looks like:
parse_navigation_link_content() in wp-content/lib/headstart/class-headstart-setters.php looks at the content, verifying that each ID exists as a post inserted in the annotation
No fix ideas yet, just describing what's happening |
The headstart annotation was removed in D90578-code. The issues were:
|
There's a new annotation available now |
The theme has different navigation items in the header and footer: It's possible to create a new "Menu" from headstart with The footer navigation block is in the We could create a post to override the Part, setting the correct Menu, but it seems that the headstart code doesn't create this kind of post from the annotation. I believe we have two options:
|
Added second menu to annotation, but the footer isn't assigned to itI've added the second wp_navigation to the annotation. This does not fix the problem, but means the user is one click away from a correct solution: After headstart is run, two different navigation menus exist, but both the header and footer are assigned to the "header navigation" Changing the footer navigation block to the other menu makes the site look like the demo Figuring out how assignments workCurrently, we don't have a way to set this for the user. The blocks being rendered here are navigation blocks that look like this:
There are many different ways to assign these, (see WordPress/gutenberg#38291 (comment) : "The Goal" bullet list ), but the primary one seems to be setting the The navigation menu in the footer is specified in the theme's If a user changes the menu assignment as in my second screenshot above, it's saved with a ref attribute: This looks to be saved in a post_type called wp_template_part:
To fix, we would need:
|
🎉 Thank you!!
Ok, understood! |
@nelsonec87, have the Headstart annotation updates been deployed yet? Could you provide a reference for the change if they have? Thanks! |
@mreishus already deployed the annotation with the latest fixes (adding new pages, navigation, etc). D90670-code |
The annotation has already been updated. |
Details
While testing some changes in D89811-code, I ran Headstart for the Tsubaki theme and noticed that two navigation menus didn't seem correct after the Headstart process completed:
2. The "Need a help?" section in the footer only includes a link to _Shop_, while the demo site has links to _FAQ_, _Refund and Returns Policy_, and _Contact us_.
Also, I think we should simplify "Need a help?" to just "Need help?", though that's not technically related to the issue we need to address.
These issues block #67862.
Checklist
Related
No response
The text was updated successfully, but these errors were encountered: