Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

custom CSS backend magento
 
frenske
Jr. Member
 
Total Posts:  7
Joined:  2008-08-13
 

I’ve made a new form in the backend, and I want to change the style with CSS.

I don’t want to change the default css files. Is the best sollution here to just make a custom admin theme? I’ve tried this, but magento still loads the default theme. Could someone explain to me how it works?

Thanks in advance! Greetings!

 
Magento Community Magento Community
Magento Community
Magento Community
 
MageParts
Guru
 
Avatar
Total Posts:  415
Joined:  2007-11-18
 

You will need to edit the file app/design/adminhtml/default/default/layout/main.xml. Add this line

<action method="addCss"><name>custom.css</name></action>

around line 77. Save the file, clear the cache in Magento and you should be good to go smile. You can of course edit the main.xml in any custom theme you have as well to make this work in the same way.
 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top