Add this to your functions.php
// Allow editors to see Appearance menu
$role_object = get_role( 'editor' );
$role_object->add_cap( 'edit_theme_options' );
function hide_menu() {
// Hide theme selection page
remove_submenu_page( 'themes.php', 'themes.php' );
// Hide widgets page
remove_submenu_page( 'themes.php', 'widgets.php' );
// Hide customize page
global $submenu;
unset($submenu['themes.php'][6]);
}
add_action('admin_head', 'hide_menu');
Related Posts:
- Add separator to admin submenu
- Remove Pagination in Appearance -> Menus -> Categories
- How do I fix this error: Warning: invalid argument supplied for foreach()?
- Is it possible to add a filter for the output of nav-menu items in admin?
- How to make pages metabox display all hierarchy in menu admin?
- How can I get an array/list of all current WordPress Admin Menu items?
- how to only add a top-level admin menu without it creating a sub-level-menu
- Theme menu in Admin Panel
- Hiding Admin Page While Keeping Menu Expanded
- Wp menu add page link as custom empty link
- Missing Menus Structure
- Change name & menu_name for Profile in the default menu, w/o altering core files?
- WordPress menu not loading in the admin side appearence-> menu tab
- Programmatically add existing pages and subpages to Appearance Menu
- WordPress Plugin menu position overwrite other item
- How to remove menu installed in wp-admin by a theme? [closed]
- enqueue script during add menu items means before save menu items
- WordPress menu items automatically becoming empty custom links
- Restrict user to edit only edit a certain menu
- Need Help Regarding Menu Magement in admin
- Roles see different top menu (nav menu)
- how to create pages and link them to a menu
- Dashicons not showed for admin menu
- wp_is_mobile() inside js
- How to create menu in Word Press 4.2.2?
- Appearance > Menus
- Removing menu item doesn’t get removed on edit post
- Is It Possible To A Link To The Homepage From The Admin Sidebar?
- Unregister Nav Menu from Child-Theme
- Keeping parent menu items active in child pages
- Way to bulk delete menu items in new 3.x Appearance > Menus system?
- Pass a parameter to a menu walker
- Menu is not visible in appearance
- Customize the menu by adding items
- Organizing by super-categories (or nested categories)?
- Adding first and last class to Menu on top level only
- wp_nav_menu log in/out link?
- Add within the output of
- How do I get my wp_nav_menu single category page to highlight the parent?
- How to insert custom code into wp_nav_menu structure?
- How to add custom menu item on plugin activation?
- Outside the loop, how can I echo the current page’s menu title?
- getting parent page id when using custom menu.
- Use menu class in walker function
- Menu link to all posts (all categories included)
- wp-menu ‘automatically add custom taxonomy terms’ like it does for pages? [closed]
- SlickNav – Google Lighthouse Accessibility issue for collapsed menu button
- Creating a navigation menu to see where you are on your website
- current-menu-item class in CSS
- Put class on instead li
- Tiles as a navigation
- Custom format nav menu only using div and a
- Sticky Header in WordPress using BootstrapWP theme [closed]
- Default menu editor with automatic page list
- Switch from hover to click on Twenty Twelve Menu
- How can I switch pages?
- Can I have custom post types in “Add menu items” on in the Admin > Appearance > Menu
- Automatically Display Sub Menu
- WordPress custom Nav Walker
- How to get a multidimensional array of my menu?
- How to get the name of the homepage’s menu?
- In admin edit-menu screen, newly added menu items always go to the bottom of the list
- How to add search to menu?
- How to get submenu of admin menu?
- wp_nav_menu without menu or theme_location specified
- active menu in post page
- What is the $menu parameter used of in wp_nav_menu()?
- Blending Foundation’s Tabs with WordPress Nav Menu & Display Active Tab
- Editing the nav menu?
- Keep source page URL parameters on custom link menu item
- I’m trying to remove a duplicate menu, which only appears on the homepage?
- Embedding an external webpage within a page? Is it possible, is it a good idea?
- Menu elements load very slow
- How to remove empty line space in navigation menu?
- Is it possible to get_the_post_thumbnail (Featured Image) inside a sprintf function?
- Assign a different menu depending on custom taxonomy
- Homepage Menu Link Won’t Function
- Custom menu is rendered in all menus
- javascript i wrote not working, can’t figure out why [closed]
- Making my main menu a hamburger menu on all platforms
- My connecting URL form in html to PHP does not work
- menu change after theme change
- Appearance –> Menu -not showing on my main page
- Menu location switcher – example code fails
- menu mobile show up even i in desktop mode in Newspaper Theme
- WordPress fountainpress header is covering top bar
- Current menu item class issue
- How to add class and span to
- extra tag is added in wp_nav_menu
- menu item active class for author.php
- My WordPress menu based on Twitter bootstrap creates menu-item and not page-item
- menu entries are lost
- menu items toggle and display on screen size reduction
- How to get wordpress navigation to work
- Menu not Showing on Mobile or While the page is shrinked
- Add A Menu Item To A WP_Nav_Menu Navigation via PHP Function
- Add custom fields to specific menus
- Sub menu for a (single) page
- Add acf custom fields so sub item in menus
- change breakpoint widths for divi theme tablet view