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 agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.