We create a new theme and assign it in the Magento admin to override the frontend theme. What if you need to override the admin theme file? Edit the default magento file? No, its not a good practise.
Here how you can override the Mageno admin theme files:
- Suppose you admin theme name is “myadmintheme”.
- Create “app/design/adminhtml/default/myadmintheme” folder parallel to the magento admin theme folder
- Create “layout” and “template” folders inside it
- Copy the files from “default/layout” and “default/template” folder you want to modify to “myadmintheme/layout” and “myadmintheme/template” following the folder structure, do the changes required.
- Create a new magento module or add the following code to an exiting modules config.xml file
<config> . . <stores> <admin> <!-- default admin design package and theme --> <design> <package> <name>default</name> </package> <theme> <default>myadmintheme</default> </theme> </design> </admin> </stores> . . </config>
Anthony
August 06, 2013Many thanks for your article! It saved my time
Chris Rogers
April 22, 2015Didn’t quite work for me in Magento 1.9:
default
custom
Changed tag to inside and worked like a charm. Thanks
Chris Rogers
April 22, 2015This stripped my code: I had to change the [default] tag inside [theme] tag to “name” and it works for my Magento 1.9
Barbara Glowa
March 23, 2016Thank you for sharing your valuable information with us.