title: Materializecss: carousel & slider not working
body: <p>EDIT: I found out the solution. See my post at the bottom of the page.</p>
  
  <p>I've created a template for joomla with materializecss. Everything works fine except the slider (which displays as a gray rectangle) and carousel which just shows images one after another as obsolete divs.</p>
  
  <p>The carousel:
  <img src="https://i.stack.imgur.com/M0Yqw.jpg" alt="carousel"></p>
  
  <p>The slider:
  <img src="https://i.stack.imgur.com/eUF6Q.jpg" alt="slider"></p>
  
  <p>I've imported the jquery script before materializecss. I've also called the carousel.carousel(). The code for slider and carousel I used is same as on the Materializecss website in examples. Can anyone help?</p>