Пропустить навигацию
I've been experimenting with block-based mega menus powered by a single custom block and the…
0:00 / 1:21

I've been experimenting with block-based mega menus powered by a single custom block and the…

Nick Diego

@nickmdiego7,3 тыс. подписчиков

Открыть в X
127 отметок «Нравится»СкачатьОригинальный пост

10 467 просмотров

I've been experimenting with block-based mega menus powered by a single custom block and the Interactivity API. Still a bit rough under the hood, but a successful proof-of-concept.

10 комментариев

Комментарии из оригинального поста в X (Twitter)

  • Фото профиля Nick Diego

    @nickmdiego

    I am in the middle of writing a detailed tutorial for the WordPress Developer Blog, but wanted to share a quick overview here:

    14 отметок «Нравится»

  • Фото профиля Nick Diego

    @nickmdiego

    The link is in the article, but the code for this block is available here:

    6 отметок «Нравится»

  • Фото профиля Seth Rubenstein

    @SethRubenstein

    You beat me to it Nick! I was just going to get started on an interactivity api driven mega menu block next week.

    3 отметки «Нравится»

  • Фото профиля Nick Diego

    @nickmdiego

    Please do, would love to compare and contrast approaches!

    2 отметки «Нравится»

  • Фото профиля Mike McAlister 🛹

    @mikemcalister

    Super cool, Nick! I’ve played with a few POCs for this but have also been waiting for some changes in 6.5. It would be cool if you could launch that contextual pattern modal so users can visually choose which mega menu to apply (though I do t think it’s extensible like that).

    2 отметки «Нравится»

  • Фото профиля Nick Diego

    @nickmdiego

    Yeah, there is definitely some UX/UI work to do on the block in the Editor, especially if you were to make this functionality available to users who are not that familiar with the Site Editor.

  • Фото профиля Darren Pinder

    @dmpinder

    Nick this is great! We keep coming up with use cases for megamenus but have been unable to build with FSE yet. Really looking forward to seeing the detailed write-up! cc @michaelbragg

    2 отметки «Нравится»

  • Фото профиля De Belser Arne

    @DeBelserArne

    This is absolutely fascinating! I attempted to replicate this functionality before, but encountered challenges. It seems like it's time to delve back into it once more.

    2 отметки «Нравится»

  • Фото профиля Jonathan Desrosiers

    @desrosj

    This stuff gets me fired up! Great work as always Nick!

    2 отметки «Нравится»

  • Фото профиля Nick Diego

    @nickmdiego

    There are a lot of new toys coming in 6.5 💪

    2 отметки «Нравится»