How to change admin logo and copyright text in Magento

Magento Provides configuration options to change the frontend logo. However to customize the admin panel login form and logo core files needs to be edited.

To overcome this limitation we can override the adminhtml files in a custom module. The custom module is named as Mydons_Customadminlogo

Step 1: Upload the custom logo in media directory. For this example i have uploaded my custom logo in media directory with the name MYDONS.png.

Step 2: Now we write our custom module config.xml file in app/code/local/Mydons/Customadminlogo/etc/config.xml file. In this file we are overriding the admin controller to change the default template.

Note: In magento version 1.5 the admin login template files are rendered from the admin controller. For the latest versions say magento 1.7, the admin login template files are rendered from main.xml layout. So to work in latest version the customadminlogo.xml layout file is used.

Step 3: The admin controller subclass is created in app/code/local/Mydons/Customadminlogo/controllers/IndexController.php. This file is needed for overriding admin templates in magento 1.5 version.

Step 4: For the latest versions to override the admin templates we use our own layout xml file in app/design/adminhtml/default/default/customadminlogo.xml

Step 5: Now copy your login.phtml and forgotpassword.phtml template files to the below directory
Now we can customize the template files to our wish.
The final output of my code looks as shown below

Demo :
Compatibility : Magento 1.5 &  1.7

Leave a Comment

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