Before you add Slick Slider, check your theme. Most current Shopify themes already ship a Slideshow or carousel section built in, so you may not need any code at all. Dawn, the free theme that comes with every new store, and the newer Horizon theme both include a Slideshow section you add from the theme editor in a few clicks. Slick is worth the effort only when you want a custom carousel your theme cannot build, such as a scrolling vendor logo strip or a multi-item product slider.

If your store runs an Online Store 2.0 theme (anything released or rebuilt in the last few years), open Online Store > Themes > Customize, add a section, and look for Slideshow or a carousel block first. If that covers what you need, stop there. If it does not, the steps below walk through adding Slick as a custom carousel.

First:


Key Takeaways
1
Check your theme first: Dawn, Horizon and most Online Store 2.0 themes already include a Slideshow section, so many stores never need Slick.
2
Add Slick only for a custom carousel, and always load jQuery before the Slick script, then start it on document ready.
3
Build it as a custom section with its own schema so it is reusable, and test every change on a duplicate theme before you touch your live store.

Do You Even Need Slick? Check Your Theme First

Slick Slider is a jQuery carousel library. It was the standard way to add a slider to Shopify back when themes shipped no built-in carousel. That is no longer the case. Dawn is the most-installed theme in our data, and like most Online Store 2.0 themes it ships a Slideshow section you can add, reorder and style from the theme editor without writing a line of code.

So the first question is not “how do I install Slick” but “does my theme already do this?” Add a section in the theme editor and look for Slideshow, Image banner, or a Collection carousel block. If one of those gives you the slider you want, you are finished, and you avoid loading an extra library that can slow the page and clash with the theme’s own scripts.

Reach for Slick when the built-in options cannot do the job: a continuous auto-scrolling logo strip, a many-item product row, or a carousel with behaviour the theme does not expose. The rest of this guide covers that case.

Step 1 - Duplicate Your Theme First

Never edit code on your live theme. In Online Store > Themes, open the three-dot menu on your current theme and choose Duplicate. Make every change on the copy, preview it, and only publish once the slider works. If anything breaks, your live store is untouched and you can delete the copy.

Step 2 - Download Slick and Upload the Assets

Download the latest Slick release and unzip it. From the duplicated theme, open Edit code (the current name for the old “Edit HTML/CSS” screen), open the Assets folder, and use Add a new asset to upload these files one at a time:

  • slick.min.js
  • slick.css
  • slick-theme.css

The font files (slick.woff, slick.ttf, slick.svg, slick.eot) only matter if you use Slick’s default arrow and dot icons. If you upload slick-theme.css, open it and change each font path from ./fonts/slick.eot to ./slick.eot so it points at the files in the Assets folder.

Step 3 - Load Slick in the Right Order

Slick needs jQuery, and jQuery must load before the Slick script or you get a $ is not a function error. Many older themes already include jQuery; Online Store 2.0 themes often do not. In your layout file theme.liquid, inside the <head>, add the stylesheets:

{{ 'slick.css' | asset_url | stylesheet_tag }}
{{ 'slick-theme.css' | asset_url | stylesheet_tag }}

Then, just before the closing </body> tag, load jQuery first (only if your theme does not already have it), then Slick, then start it on document ready:

<script src="https://code.jquery.com/jquery-3.7.1.min.js"></script>
{{ 'slick.min.js' | asset_url | script_tag }}
<script>
  document.addEventListener('DOMContentLoaded', function () {
    if (window.jQuery && jQuery.fn.slick) {
      jQuery('.your-slider').slick({
        dots: true,
        arrows: true,
        infinite: true,
        speed: 500,
        slidesToShow: 4,
        slidesToScroll: 1,
        autoplay: true,
        autoplaySpeed: 2000,
        responsive: [{ breakpoint: 768, settings: { slidesToShow: 2 } }]
      });
    }
  });
</script>

If your theme already ships jQuery, delete the first line so you do not load it twice, which is one of the most common causes of a slider that refuses to start.

Step 4 - Add the Slider as a Custom Section

On an Online Store 2.0 theme, build the slider as its own section so you can drop it onto any page from the theme editor and reuse it. In the Sections folder, create a file such as slick-carousel.liquid with your markup and a schema block:

<div class="your-slider">
  {% for block in section.blocks %}
    <div>{{ block.settings.image | image_url: width: 600 | image_tag }}</div>
  {% endfor %}
</div>

{% schema %}
{
  "name": "Slick Carousel",
  "blocks": [
    {
      "type": "slide",
      "name": "Slide",
      "settings": [
        { "type": "image_picker", "id": "image", "label": "Image" }
      ]
    }
  ],
  "presets": [{ "name": "Slick Carousel" }]
}
{% endschema %}

Because the class="your-slider" matches the selector in your init script, the carousel starts automatically wherever you place the section. The presets block makes the section appear in the theme editor’s Add section list, so you add and fill it without touching code again.

Step 5 - Style, Test and Publish

Add any sizing in slick-theme.css or your theme’s stylesheet, keyed to your slider class:

.your-slider { margin: 20px auto; max-width: 1100px; }
.your-slider .slick-slide { padding: 0 10px; }

Save, preview the duplicated theme on both desktop and mobile, and confirm the slider scrolls, the arrows and dots behave, and nothing else on the page shifts. When it all works, publish the duplicated theme.

Troubleshooting Slick on Shopify

The slider does not appear, or all slides stack vertically. This almost always means the Slick script did not run. Open your browser console: a $ is not defined or slick is not a function error means jQuery loaded after Slick, or not at all. Make sure jQuery loads first, and that the selector in your init script exactly matches the class on your slider container.

The arrows or dots are missing. Check that slick-theme.css is uploaded and loaded, and that the font paths inside it point at the Assets folder (./slick.eot, not ./fonts/slick.eot). Missing icon fonts are the usual cause of blank arrows.

The slider fights with the theme’s own JavaScript. Some themes start their sections on their own events rather than on document ready, which can run your init too early or twice. If the carousel flickers or re-initialises, check that it has not already started before you call it (if (!jQuery('.your-slider').hasClass('slick-initialized'))), and avoid loading a second copy of jQuery, which is the most common source of conflicts.

For more along these lines, browse our guide to Shopify’s advanced plan features.