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?
2 Answers
Reset to default 4Is 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
版权声明:本文标题:Any way to use classic Menus in Full Site Editing? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736295172a1929514.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论