OK, it’s a bit messy, but it works. Take a look
function remove_submenus() {
global $submenu;
unset($submenu['themes.php'][10]); // Removes Menu
}
add_action('admin_menu', 'remove_submenus');
function new_nav_menu () {
global $menu;
$menu[99] = array('', 'read', 'separator', '', 'menu-top menu-nav');
add_menu_page(__('Nav Menus', 'mav-menus'), __('Nav Menus', 'nav-menus'), 'edit_themes', 'nav-menus.php', '', 99);
}
add_action('admin_menu', 'new_nav_menu');
Essentially it is removing the nav menu settings from the Appearance sub-panel, then re-adding it as a top level page (similar to a plugin). You can set an icon URL in there as well. The only part I can’t get working the way I want is the positioning.
Related Posts:
- Changing Admin Menu Labels
- Admin top level menu, pointing to an external url
- Add “external” link to admin menu in the backend
- How to remove items from +New admin menu?
- Appearance->Editor not visible
- Add column to pages table
- Admin account only shows Profile and Dashboard with no activity
- How to prevent parent admin page from appearring as a child admin page
- How do I set the homepage to the WordPress Admin Dashboard login?
- Create a admin page in wordpress without admin menus (“wordpress sidebars”)
- Add column to pages table
- Move ‘current-menu-item’ class on #adminmenu li from Posts to Pages for Taxonomy Edit Screen
- How to break line / add to ADMIN menu
- Creating custom admin panel pages without making a plugin?
- Dashboard : remove Safari navigator message
- Trying to create a page as a menu item in the admin while keeping the admen panel visible
- WordPress Admin Panel Left Sidebar No showing on Post create page
- Localhost install: Administrator lost administrator access; cannot access Dashboard
- How to make the Panel // WP-Admin lighter via Mobile
- Organizing Code in your WordPress Theme's functions.php File?
- How do I Enqueue styles/scripts on Certain /wp-admin Pages?
- How to remove admin menu pages inserted by plugins?
- Is there ANY way to remove comments function and section totally?
- Disable dragging of meta boxes?
- How to Change the Default Home Page for the WordPress Dashboard?
- Remove dashboard, use Pages tab as default
- 3.3: How do you hide the new dashboard welcome panel?
- How to add a custom metabox to the Menu Management admin screen?
- How to add custom submenu links in wp-admin menus?
- Is it OK to move admin menu items?
- How to create sub menu with a URL parameter?
- How do I create a new WP admin color scheme?
- Reorder custom submenu item
- Dashboard links not working
- Can initial focus be set to search field in WordPress Media Library?
- Admin pages have no content
- Removing admin bar from wordpress dashboard
- Why adding Categories does not auto refresh in Backend while using my custom theme?
- remove plugin admin menu in wordpress without installing plugin in v3.8.1
- Can’t access dashboard, connection times out (other pages work fine)
- Custom Dashboard Home Screen Options
- wp-admin does not redirect to dashboard
- How To Create User Specific Admin User Pages?
- Change the Default Pages Menu View in wp-admin
- Change WP-Login or WP-Admin
- SSL Partially breaking admin panel and elementor
- Remove query var on admin pages when ‘Save changes’ pressed
- Associating custom submenu item with post type of top level menu item
- How to hide wordpress default description box?
- Create a fullwidth dashboard widget
- I want to disable login of admin (/wp-admin) with email and make it accessible only with username
- Remove All in One Pack from the admin bar
- Cannot find an OLD Gravity Form on an OLD Word Press site [closed]
- How to make the front-end RTL without changing the admin panel language?
- wrapping ‘rest_api_init’ in ‘is_admin()’ function
- remove wp floating submenu in wp dashboard
- WP-Admin shows (1) update but there is no update for plugin, theme or WordPress
- Remove or move admin submenus under a new menu
- WP admin user search doesn’t return all users
- can not access wp-admin after migrating to openshift
- How to get specific page screen ID
- Removing Dashboard Menu Items Through The Database
- Hooks: admin_footer and admin_print_footer_scripts not working?
- WordPress Side Menu Admin Panel Default Order numbers List?
- Develop Admin Panel Page
- Hide admin menu on update_option
- What is the correct way to get only display plugin for Administrator Only
- How to hide Admin Tabs? [duplicate]
- Browse Happy in 3.2
- Sortable column (by numbers) in admin users
- Outputting something based on the presence of post variable in admin screens
- Available resources for learning WordPress 4.7.2 from the ground up?
- how to stop wordpress admin menu from scrolling with page
- How to change a specific admin label
- WordPress Admin extremely slow when other admin logged in
- Custom admin menu order fails if slugs are complicated
- How to display my comment count in the wordpress admin bar?
- Step by step guide for new users on how to post content?
- How to create custom backend admin menu in different languages?
- How to log into WordPress via GET/POST
- How to remove Google fonts from wp-admin (Roboto) added by core
- restrict admin panel sections to users
- Trying to login to my site redirects me to the first page
- How to display status messages in admin panel
- adding existing menu page on new customer user role
- Admin Login Checks
- Disable flyout (popup) menus in backend
- When installing wordpress through WP CLI mysite.com/admin not working
- Remove capability to interact with a page
- Getting 404s in wp-admin after logged in
- wp_is_mobile() inside js
- Unable to render Admin Notices
- Redirection to external site on admin
- Is it possible to tell if a user is logged into WordPress from looking at the cookies which are set?
- Move Custom Taxonomy Menu to Top Level Admin Menu
- How can you change the admin dashboard URL without symlinking?
- get_current_screen() does not return parent_file
- Import bootstrap 5 and bootstrap icons in wp-admin backend
- Admin utility classes?
- How can I have an admin only non-dashboard page in my WordPress plugin