-
Notifications
You must be signed in to change notification settings - Fork 0
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
[#495] Setting up a default Navigation #556
Conversation
All in the same hook where the pages get created, trying to figure out a different place to do it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
Is this still a draft? |
Yep it is still a draft. Once we get the hook added for creating site we will update this PR so the nav get created on that hook. |
@nathan-schmidt-viget This should be good to go. Give this a test and let me know if it's working. The Navigation will be updated when the Site is verified (not initialized, that hook is too early). |
f649de9
to
08fab0b
Compare
* [#495] Setting up basic test with nav links * [#495] testing out pattern for custom menu * [#495] pulling in the created pages into the new nav * [#495] adding notes for TODO * [#495] getting active nav post id * [#495] A couple of tweaks, potential bug fixes * [#495] Some fixes/adjustments * [#495] Used Verified hook for Navigation Changes * [#495] Fix nav + other bug fixes --------- Co-authored-by: Nathan Schmidt <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 🚀
Summary
The option to render inner blocks inside of core/navigation will be in WP version 6.5. So this is a workaround for now. See the notes in the ticket for more details #495.
This updates the
wp_navigation
content with the two About and Auctions page using<!-- wp:navigation-link -->
. This allows us (and the user) to have full control of the navigation block in Gutenberg.Things still TODO:
Figure out how to get nav ID - it is always the first one.Issues
Testing Instructions
Screenshots
Front-end
Admin