I need to add a CSS/JS and HTML to CMS page is that even possible? I wrote a "Calculator" offline, styled it and now facing a problem. How can I add the JS/jQuery and CSS to a CMS page so I can keep my format? I'm using Magento 2.1.8

1 Answer 1


For CSS:

<style xml="space"><!--
    your style goes here

For JS:

<script type="text/javascript" xml="space">// <![CDATA[
require([ "jquery" ], function( $ ) {
// ]]></script>

I hope this is useful. Thanks. Thumps up!

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.