I originally used this plug-in which worked perfectly. Then one day the menus disappeared. I'm using this on multisite, so I thought there's an issue with the plugin for WP 3.3.1 MU?
It's also giving me an error that says "Error: menu_obj.droppable is not a function" from ../wp-content/mu-plugins/admin-menu-editor/js/menu-editor.js. That's way over my head...
9603 pointsLike some sort of WPMU DEV GodMindblowingly helpful memberLifetime member
Sales & Support Pro
—
17th January 2012 (4 months ago)
#
Looks like you've installed it in mu-plugins which I don't believe is the recommended install... Instead you should try installing into the normal plugins directory.
Well, this will get you started, but it's not complete. I decided to test moving the theme editor from under the Appearances section up to a top level item. It works, but when you select it - both it and the Appearances are highlighted (not sure why yet).
Basically, I used remove_submenu_page to take it out of Appearances and add_menu_page to put as a top level menu. I didn't worry about positioning, so it's at the very bottom of the menu. The codex for add_menu_page is here Add Menu Page
And here's my test code - such as it is....
`
// Test to move editor out of Appearances menu
add_action( 'admin_init', 'adjust_the_wp_menu' );
function adjust_the_wp_menu()
{
remove_submenu_page( 'themes.php', 'theme-editor.php' );
add_menu_page('Theme Editor','Editor','edit_themes','theme-editor.php');
}
'
Just drop into your functions.php file
I'll keep looking, because I need this function as well. If I figure out the active highlighting problem, I'll post back.
Hi Alex,
After a bit more research, the issue with the Appearances menu also being highlighted is not something with an easy fix, as it's in the WP core and not something we should really change for future compatibility.
However, if you are planning to pull out certain submenus and then hide the other menus from a user - this would work. For instance, if you pulled out Menus from under Appearance, and then hid Appearance and it's submenus - you'd not see the duplicate active highlighting.
Responses (9)
Lifetime Member — 16th January 2012 (4 months ago) #
Hi Alex, you can try this plugin to customize admin menu,
http://wordpress.org/extend/plugins/admin-menu-editor/
Sales & Support Pro — 16th January 2012 (4 months ago) #
Hiya!
Yep, I'd recommend that plugin too...
Thanks
Member — 17th January 2012 (4 months ago) #
I originally used this plug-in which worked perfectly. Then one day the menus disappeared. I'm using this on multisite, so I thought there's an issue with the plugin for WP 3.3.1 MU?
It's also giving me an error that says "Error: menu_obj.droppable is not a function" from ../wp-content/mu-plugins/admin-menu-editor/js/menu-editor.js. That's way over my head...
Sales & Support Pro — 17th January 2012 (4 months ago) #
Looks like you've installed it in mu-plugins which I don't believe is the recommended install... Instead you should try installing into the normal plugins directory.
Thanks
Member — 18th January 2012 (4 months ago) #
I followed the multisite installation referenced below
http://wordpress.org/extend/plugins/admin-menu-editor/installation/
I'll try the other install and see what happens...
Member — 18th January 2012 (4 months ago) #
having the same problem.
back the original question -- is there a way I can move the General submenu without the plugin?
Member — 4th February 2012 (3 months ago) #
Hi Alex,
Well, this will get you started, but it's not complete. I decided to test moving the theme editor from under the Appearances section up to a top level item. It works, but when you select it - both it and the Appearances are highlighted (not sure why yet).
Basically, I used remove_submenu_page to take it out of Appearances and add_menu_page to put as a top level menu. I didn't worry about positioning, so it's at the very bottom of the menu. The codex for add_menu_page is here Add Menu Page
And here's my test code - such as it is....
`
// Test to move editor out of Appearances menu
add_action( 'admin_init', 'adjust_the_wp_menu' );
function adjust_the_wp_menu()
{
remove_submenu_page( 'themes.php', 'theme-editor.php' );
add_menu_page('Theme Editor','Editor','edit_themes','theme-editor.php');
}
'
Just drop into your functions.php file
I'll keep looking, because I need this function as well. If I figure out the active highlighting problem, I'll post back.
Member — 4th February 2012 (3 months ago) #
Hi Alex,
After a bit more research, the issue with the Appearances menu also being highlighted is not something with an easy fix, as it's in the WP core and not something we should really change for future compatibility.
However, if you are planning to pull out certain submenus and then hide the other menus from a user - this would work. For instance, if you pulled out Menus from under Appearance, and then hid Appearance and it's submenus - you'd not see the duplicate active highlighting.
Hope this helped!
Member — 5th February 2012 (3 months ago) #
THanks, bghouse. I was actually able to get the admin menu editor plugin to work on the multisite. It's working perfectly now.
Become a member