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

Mega Menu Block #29

Open
wants to merge 6 commits into
base: trunk
Choose a base branch
from
Open

Conversation

verytwisty
Copy link

What

Add a button that can be added to the navigation block which will open a mega menu when clicked. The content of the mega menu is arbitrary and is added via a template part in the newly created 'Mega Menu' section under patterns. The user can choose which template part any particular menu button can open.

Based on Nick Diego's Mega Menu tutorial with a few modifications

Why

A project I was working on required a mega menu and others may find it useful if their project also requires one

How to Test

Add a new template part in the Mega Menu category and add some blocks inside the template part. Then add a Mega Menu block to the primary navigation. Choose the mega menu template from the Menu template drop down and optionally add a label. Check it is working on the front end of the site

@tommusrhodus tommusrhodus self-requested a review October 30, 2024 16:23
@tommusrhodus tommusrhodus self-assigned this Oct 30, 2024
@tommusrhodus
Copy link
Contributor

@verytwisty This is looking good. Two asks currently:

  1. Please include the auto-updater.
  2. Please change namespace from wpcomsp to a8csp, this is coming to docs shortly.

@verytwisty
Copy link
Author

@tommusrhodus These are done :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants