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? Commented Jan 18, 2016 at 12:32
  • did you set theme for admin? Commented Jan 18, 2016 at 12:37
  • I have set my theme here: Design\Package\Current Package Name Commented 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. Commented 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.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.