Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #462947

    I’d like to hide “Customize,” “Install Plugins,” and “Editor” under the “Appearance” Menu in the left navigation of the WordPress Admin Panel. I don’t want customers to access the “Editor” function, and unless I’m missing something, “Customize” and “Install Plugins” are available in other places. (If I’m wrong here, please comment.)

    I don’t write .php, so I need very specific instructions on what code to add to my Child Theme to get rid of these 3 submenu items. Thanks

    #462953

    Hey Kim!

    Please add following code to Functions.php file in Appearance > Editor

    function as_remove_menus () {
           global $submenu;
            unset($submenu['themes.php'][6]);
    }
    add_action('admin_menu', 'as_remove_menus');

    Please add following code to wp-config.php file

    define( 'DISALLOW_FILE_EDIT', true );

    Best regards,
    Yigit

    #463059

    Thanks Yigit,
    I tried your code and it works, but you only gave me instructions to remove “Customize.” I figured out how to get rid of “Editor” using the “unset” line above with [101], but I don’t have a corresponding number for “Install Plugins.” How do I get rid of that menu item? Thanks Kim

    #463063

    Hi!

    Please add following code to wp-config.php file as well

    define('DISALLOW_FILE_MODS',true);

    Best regards,
    Yigit

    #463068

    Excellent! Worked great! Thank you.

    One other question…I want to change the order of the menu items. I don’t know how to reference: Enfold Theme, Portfolio Item, Layer Slider WP. Can you tell me what the .php file names are for each of those or whatever name I’m supposed to use? Thanks Kim

    #463071

    Hey!

    Please try using this plugin – https://wordpress.org/plugins/admin-menu-editor/

    Cheers!
    Yigit

    #463072

    Thanks but I don’t want to use a plugin. What are the file names for those Enfold specific menu items? I have the code I need to reorder the menu items. I just need the file names. Thanks Kim

    #463104

    I missed something before. Your line of code: define(‘DISALLOW_FILE_MODS’,true); not only hides “Install Plugins” under the Appearance Menu, it also makes “Installed Plugins” and “Add New” disappear under “Plugins.” I don’t want the submenu items under “Plugins” to disappear, just the one under “Appearance.” There’s no reason to have the “Install Plugins” listed twice.

    #463585

    Hi!

    I do not have “install plugins” under Appearance tab. Maybe you are using a plugin for it modified version of WordPress. So i am not really sure how to remove only that one. To be honest, all these questions are WordPress related and would be better if asked on WordPress forums :)

    Cheers!
    Yigit

    #463709

    Yigit,
    I believe it has something to do with LayerSlider WP that is installed with the Enfold theme. When you click on the Help link within this WordPress Admin page, it opens a developer link to the LayerSlider. This isn’t one of my other plugins.

    Kim

    #464066

    Hi Kim!

    I meant “Install plugins” – http://i.imgur.com/GCZzjHK.png

    Regards,
    Yigit

Viewing 11 posts - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.