Website Building » Shopify » How Do I Add Slick Slider to Shopify?

How Do I Add Slick Slider to Shopify?

Last updated on January 16, 2023 @ 6:52 am

Adding a Slider to Shopify

Shopify is a powerful e-commerce platform that gives store owners the ability to sell online. One of the great things about Shopify is that it is easy to add features and functionality to your store, without needing to code.

One popular feature that can be added to Shopify stores is a Slider. Sliders are a great way to add visual interest to your store and can be used to showcase products, featured collections, or highlight special offers.

Adding a Slider to your Shopify store is easy and can be done in just a few steps:

1. Log in to your Shopify Admin and go to Online Store > Themes.

2. Find the theme you want to edit and click on the Actions button. From the drop-down menu, select Edit code.

Go to Shopify online store themes and click edit code actions

3. In the Edit HTML/CSS page, locate the Assets folder and click on it. Then, click on the Add a new asset button.

In the code editor, click the assets folder and add a new asset

4. In the Add asset window, select Create a new asset under the Asset type options. Then, click on the Choose file button and select the Slider image you want to upload. After selecting the image, click on the Save button.

Upload your images in Shopify add a new asset dialog

5. Now that you’ve added the Slider image asset to your theme, you need to add some code in order for it to appear on your store. In the Edit HTML/CSS page, locate the Layout folder and click on it. Then, click on the theme.liquid file.

In the Shopify code editor, click layout folder and then themes liquid file

PRO TIP: Slick Slider is a great tool to add to your Shopify store, but be warned that it can be a little tricky to set up. Make sure you follow the instructions carefully and test your slider out before you add it to your live site.

6. In the theme.liquid file, locate the section of code and add the following code snippet just below it:

<style>

.slider {

width: 100%;

height: 600px;

background-image: url('{{ 'slider1_image' | asset_url }}');

background-repeat: no-repeat;

background-size: cover;

}

</style>

7. Save your changes and preview your store to see the Slider in action!

Paste the code in theme liquid file and click save & preview your store

Kathy McFarland

Kathy McFarland

Devops woman in trade, tech explorer and problem navigator.