0

I have a problem for add a simple JavaScript on my admin dashboard.

I have create a local.xml with my folder theme but no result.

www\app\design\adminhtml\mytheme\default\layout\local.xml

<layout>
    <default>
        <reference name="head">
            <action method="addJs"><script>mytheme/jquery.js</script></action>      
        </reference>
    </default>
</layout>

Thanks for your help.

4
  • Is your custom admin theme applied? If so, did you get any 404 error for mytheme/jquery.js? Jan 18, 2016 at 12:32
  • did you set theme for admin? Jan 18, 2016 at 12:37
  • I have set my theme here: Design\Package\Current Package Name Jan 18, 2016 at 12:59
  • That is for setting the frontend theme. There is no backend option for setting a backend theme in Magento so far. Jan 20, 2016 at 9:43

1 Answer 1

1

You don't have to build a separate admin theme for that. Just place your local.xml under this location:

\app\design\adminhtml\default\default\layout\local.xml

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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