skip to Main Content

I tried to include js in Layout XML of cms page but js is not included. I want to apply js on particular cms page.

2

Answers


  1. You can read this blog post and i hope that it will help you to solve your issues. You can also share your code what you have done so far.
    https://alanstorm.com/magento_2_javascript_css_layout_woes/

    Login or Signup to reply.
  2. <reference name="head">
    <action method="addJs"><script>megnor/carousel.min.js</script></action>
    </reference>

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search