Add Image Slider in Shopify Page

Add Image Slider in Shopify Page

Log in or Sign up to ensure access to purchased code across multiple devices.

How to see the code

1. Please log in/create an account first. This is to ensure that all purchases are connected to an account and can be viewed on different devices.

2. Purchase the code using the "purchase box" on the specific page of the desired code.

3. After the purchase, please refresh the page.

Compatibility: Compatible with Shopify 2.0 FREE themes  ONLY

Image sliders are a great way to showcase your products, promotions, and brand on your Shopify page. An image slider allows you to display multiple images in a slideshow format, which can grab the attention of visitors and provide a visually appealing experience.

With just a few lines of code, you can create a slider and arrange it with your Shopify page content. It's important to note that spacing does affect the space before and after the slider, so be mindful when adjusting the code. With this simple and customizable solution, you can create a stunning image slider to showcase your products and promotions on your Shopify page. So why not add an awesome image slider today and take your Shopify page to the next level?

Please check our demo store before making a purchase. Password: made4uo

What you are buying:

  • Add an image slider on the Shopify page
  • Slider size is half of the page container
  • Change the position of slider in the page
  • Height of the slider is affected by the maximum image height
  • Make sure to have images with portrait size or landscape grouped together

What makes our code better:

  • We do not use external libraries, with that being said, our code will have no to minimal effect to your website's speed performance
  • We do not leave or add codes use to advertise for our website
  • Our code is mobile friendly

Any issues related to the code will be fix with no additional cost, excluding code customization requests. Simply contact us with "Chat with us." We are just a button away. 

To start:

1. Go to Admin Shopify store > Themes > Actions > Edit Code.

2. In Section folder, open the main-page.liquid.

3. Replace the whole code with the code below. Make sure to SAVE.

4. Next, we need to create a page. From your Admin page, go to Online store, then Pages. 

5. Write the page, but when you want the slider to enclose the image, add the text below before the first image. Make sure to not add spaces.


See image below on how the "===page-slider===" is added before the first image. NOTE: Do not add quotation marks (")

Adding the before  "===page-slider==="

6. Add text below after the last image. Please follow on how it is written below.


See image below on how the "===/page-slider===" is added after the last image. NOTE: Do not add quotation marks (")

Adding the closing "===/page-slider==="

See the image below, how to make a space between the next image that is not included in the page-slider.

Click the image that you want to place beside the slide. Make sure to add a space on the left. For this example below, I set it to 10. 

Add a space on the left of image

7. To change the position of the slider, make sure to change the alignment of the first image only inside the slider. Click the image, then change the Alignment to left, center, or right. See image below.

Slider position

8. Click SAVE

If you are having issues at times, it might be because some code was changed in your Admin Page. Make sure that the code for the ===page-slider=== is enclosed by a <p> or <p><span>. You need to click the "<>" to see the code. See image below

Shopify code settings

If you are having troubles, just contact us with "Chat with us."

That's it (",)

Back to blog

Leave a comment