In Content -> Design -> Configuration -> Footer -> Miscellaneous HTML, I can add javascript files like this just fine,

<script type="text/javascript" src="http://example.com/myjavascript.js"></script>

But what I want to add a javascript from my own theme, like I could do in a layout xml,

<link src="js/javascript.js"/>

but this is not working with Miscellaneours HTML.

How can I add a javascript from my own theme with Miscellaneous HTML?

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.