Hide admin menu items

Hide admin menu items

September 19, 2026 · Illustrated author avatarBy Stefan Bogdanescu
Hide admin menu items

Hiding Admin Menu Items in Magento: A Comprehensive Guide

As a senior developer and technical blogger for Laravel Company, I often encounter questions about hiding admin menu items in Magento. While there are many approaches, one of the most elegant methods is to create a custom module and disable it through the config.xml file. However, some developers struggle with getting this method to work correctly.

Let me guide you step-by-step on how to achieve this effectively:

Step 1: Create Your Custom Module

Firstly, navigate to your Magento installation’s app/etc/modules directory. Here, create a new XML configuration file for your module. Let’s name it LDW_All.xml.

<?xml version="1.0"?>
<config>
    <modules>
        <LDW_AdminMenu>
            <active>true</active>
            <codePool>local</codePool>
        </LDW_AdminMenu>
    </modules>
</config>

This file tells Magento that your module is active and located in the local code pool.

Step 2: Configure Your Module

Next, create a directory structure for your module inside app/code/local/LDW/AdminMenu/. The etc folder should contain an XML configuration file called adminhtml.xml.

<?xml version="1.0" encoding="utf-8"?>
<config>
    <modules>
        <LDW_AdminMenu>
            <version>0.1.0</version>
        </LDW_AdminMenu>
    </modules>
    <adminhtml>
        <menu>
            <mobile>
                <depends><module>HideMe</module></depends>
            </mobile>
        </menu>
    </adminhtml>
</config>

In this file, specify the module version and define a menu item that depends on the HideMe module. This is where you can configure which menu items to hide.

Step 3: Hide Menu Items

To actually hide the menu items, you need to disable the HideMe module in your Magento installation. You can do this by editing the app/etc/modules/HideMe.xml file and setting <active>false</active>.

<?xml version="1.0"?>
<config>
    <modules>
        <HideMe>
            <active>false</active>
            <codePool>local</codePool>
        </HideMe>
    </modules>
</config>

By disabling the HideMe module, all menu items that depend on it will be hidden from view in your Magento admin panel.

Conclusion

Remember to clear your cache after making these changes for them to take effect:

php bin/magento cache:flush

This technique offers a clean and controlled way of hiding specific admin menu items. It allows you to manage access rights without modifying core files, ensuring the stability of your Magento installation.

If you’re looking for more advanced customization options or expert assistance with your Magento development needs, be sure to check out our services at Laravel Company. Our team specializes in delivering robust and secure solutions tailored to your business requirements.

Extensions Admin Configuration

Our network