Skip to content
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

Snippet: How to add custom blocks to Navigation menus #365

Open
bph opened this issue Jan 9, 2025 · 2 comments
Open

Snippet: How to add custom blocks to Navigation menus #365

bph opened this issue Jan 9, 2025 · 2 comments
Assignees

Comments

@bph
Copy link
Collaborator

bph commented Jan 9, 2025

Discussed in #355

Originally posted by ndiego December 9, 2024
Adding custom blocks to the Navigation block is a common need, such as blocks for icons or a mega menu. By default, the Navigation block restricts the blocks that can be used within it. However, with a bit of code, you can enable your custom block to be used in Navigation. This snippet will show you how.

This idea originated from this discussion in WP Slack.

@bph
Copy link
Collaborator Author

bph commented Jan 9, 2025

@ndiego mentioned

In preparation for this snippet (hopefully) being approved. I have started an initial draft: https://docs.google.com/document/d/1d9_Emzx-zVQn6YFS6A7xTru500y-oqs6yqa85jjvQQI/edit?tab=t.0

@bph bph moved this from To-do to Needs 1st review in Developer Blog Content Board Jan 9, 2025
@bph bph moved this from Needs 1st review to Done w/ 1st Review in Developer Blog Content Board Jan 9, 2025
@bph
Copy link
Collaborator Author

bph commented Jan 9, 2025

@ndiego Just finished my first review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done w/ 1st Review
Development

No branches or pull requests

2 participants