Just want to hide 'MagePlaza' from left navigation, which make client confuse.

I am trying to find simple and easy solution.

enter image description here

If you don't want to change in code then create new role for your client and add all resource except mageplaza and assign that rule to your client admin.

This link will help you to create role.

https://www.mageplaza.com/kb/how-to-create-user-role-magento-2.html

  • yes I did this for time period, but looking for solid solution. – faisal Oct 23 at 9:07
  • 1
    I think this way is good because if you change in mageplaza xml file and in future if you update extension then you have to change in same file again so better to create role – Rakesh Varma Oct 23 at 9:10
  • valid point (thumbs up) – faisal Oct 23 at 9:11
  • if it helps you. you can accept the answer :) – Rakesh Varma Oct 23 at 9:14
  • +1 for nice solution – Rohan Hapani Oct 23 at 9:22

Goto your module directory in etc > adminhtml > menu.xml

add <remove id="menu_id"/> before ending <menu> node.
menu_id is a identifier which you set in <add> node id attribute.

  • getting security error – faisal Oct 23 at 9:08
  • add <remove id="Mageplaza_Core::menu" /> in <menu> node before ending. i have updated the answer let me know. – Himanshu Oct 23 at 9:09

If you have installed this module via composer then you have to follow below directory: [Your_Projetc_Folder_Name]/vendor/mageplaza/module-core/etc/adminhtml/menu.xml and comment the code

<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Backend:etc/menu.xsd"> 
<!--<menu>
            <add id="Mageplaza_Core::menu" title="Mageplaza" module="Mageplaza_Core" sortOrder="50" resource="Mageplaza_Core::menu"/>
            <add id="Mageplaza_Core::documentation" title="Documentations" module="Mageplaza_Core" sortOrder="999" resource="Mageplaza_Core::documentation" parent="Mageplaza_Core::menu"/>
            <add id="Mageplaza_Core::marketplace" title="Mageplaza Marketplace" module="Mageplaza_Core" sortOrder="10" action="adminhtml/system_config/edit/section/mpmarketplace" resource="Mageplaza_Core::marketplace" parent="Mageplaza_Core::documentation"/>
            <add id="Mageplaza_Core::userguide" title="User Guides" module="Mageplaza_Core" sortOrder="20" action="mpcore/index/userguide" resource="Mageplaza_Core::userguide" parent="Mageplaza_Core::documentation"/>
        </menu>--> 
</config>

Otherwise you can follow @Ravi's way.

Comment below code

/app/code/Mageplaza/Core/etc/adminhtml/menu.xml

    <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Backend:etc/menu.xsd">
<!-- <menu>
<add id="Mageplaza_Core::menu" title="Mageplaza" module="Mageplaza_Core" sortOrder="50" resource="Mageplaza_Core::menu"/>
<add id="Mageplaza_Core::documentation" title="Documentations" module="Mageplaza_Core" sortOrder="999" resource="Mageplaza_Core::documentation" parent="Mageplaza_Core::menu"/>
<add id="Mageplaza_Core::marketplace" title="Mageplaza Marketplace" module="Mageplaza_Core" sortOrder="10" action="adminhtml/system_config/edit/section/mpmarketplace" resource="Mageplaza_Core::marketplace" parent="Mageplaza_Core::documentation"/>
<add id="Mageplaza_Core::userguide" title="User Guides" module="Mageplaza_Core" sortOrder="20" action="mpcore/index/userguide" resource="Mageplaza_Core::userguide" parent="Mageplaza_Core::documentation"/>
</menu> -->
</config>

Your Answer

 
discard

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.