Support » Themes and Templates » Remove Customize from Admin Menu

  • Wanting to remove the “customize” menu link.

    I’ve already got the header and background removed but can’t for the life of me figure out how to remove the customize menu under Appearance.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Try using the following:

    function remove_menus(){
      remove_submenu_page( 'themes.php', 'customize.php' );
    add_action( 'admin_menu', 'remove_menus' );

    Let me know if that works.

    Also, can you share how you removed the Header and Background links?

    Thanks…found another solution since then and moved on. 🙂

    Here is what we did for the background..can’t seem to find the one for the header but I’m sure it’s similar if you do a quick search for the related code:

    //Remove the custom options provided by the default twentytwelve theme.
    add_action( 'after_setup_theme','remove_twentytwelve_options', 100 );
    function remove_twentytwelve_options() {
    	remove_action('admin_menu', 'twentytwelve_theme_options_add_page', 11);

    By the way, this is the code we used for the Customize area:

    function remove_submenus() {
      global $submenu;
      unset($submenu['index.php'][10]); // Removes 'Updates'.
      unset($submenu['themes.php'][5]); // Removes 'Themes'.
      unset($submenu['customize.php'][1]); // Removes 'Themes'.
      unset($submenu['options-general.php'][30]); // Removes 'Customize'.
    	unset($submenu['options-general.php'][40]); // Removes 'Customize'.

    function remove_customize_page(){
    	global $submenu;
    	unset($submenu['themes.php'][6]); // remove customize link
    add_action( 'admin_menu', 'remove_customize_page');

    Have fun 🙂

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Remove Customize from Admin Menu’ is closed to new replies.