Magento2 How to remove or rename ‘Add New’ button from Admin Grid

Rename ‘Add New’ button

– Go to YourNamespace -> YourModule -> Block -> Adminhtml -> ModuleFile.php
– Add the following code in the constructor of this file:-

Remove ‘Add New’ button

– Go to YourNamespace -> YourModule -> Block -> Adminhtml -> ModuleFile.php
– Add the following code in the constructor of this file

Leave a Reply

Your email address will not be published. Required fields are marked *