admin管理员组

文章数量:1122846

I use an FSE theme and as you might know the Navigation block is pretty limited. I want to implement a custom mega-menu-ish navigation for a big website.
Is there any way to enable the Appearance->Menus in the admin dashboard while FSE theme is enabled, so that I could use a shortcode to implement this?

I use an FSE theme and as you might know the Navigation block is pretty limited. I want to implement a custom mega-menu-ish navigation for a big website.
Is there any way to enable the Appearance->Menus in the admin dashboard while FSE theme is enabled, so that I could use a shortcode to implement this?

Share Improve this question asked Oct 11, 2022 at 9:25 Akshay K NairAkshay K Nair 1911 silver badge11 bronze badges
Add a comment  | 

2 Answers 2

Reset to default 4

Is there any way to enable the Appearance->Menus in the admin dashboard while FSE theme is enabled

I noticed that in some FSE themes the classic Menus admin page shows up under Appearance:

when they include a register_nav_menus( ... ) call within the after_setup_theme hook to define the relevant classic menu locations.

See for example the Raft theme's setup:

https://themes.trac.wordpress.org/browser/raft/1.0.3/inc/Core.php#L87

It's also possible to select classic menus within the Navigation block:

We note that the "Manage menus" link in the Navigation block is

/wp-admin/edit.php?post_type=wp_navigation

and it is not pointing the classic Menus admin page:

/wp-admin/nav-menus.php

I followed the instructions, and i managed to create a menu in the classic menu editor. However the "Select Menu" button in the Gutenberg editor is not showing up. Any ideas how to get that working? Thanks.

本文标签: Any way to use classic Menus in Full Site Editing