How do I create a slider on my product page?

Hello Community,

I am currently editing my product page (https://petnshop.ca/products/3-in-1-dog-water-bottle)

And on my product page under my product photo it shows the number of pages and which page you are currently in as you see in the photo and I would like to remove that and instead make a slider like showed in the photo with arrows in both side left and right and people can move using that and sliding.

1 Like

Hi @PetNShop

You need to hire someone to do the code so you can make the image clickable. We can place the button on side but this will not make your image clickable. Please follow the instructions below.

  • From your Shopify admin dashboard, click on “Online Store” and then “Themes”.
  • Find the theme that you want to edit and click on “Actions” and then “Edit code”.
  • In the “Assets” folder, click on “base.css, style.css or theme.css” file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:
@media only screen and (max-width: 750px){
.slider-buttons.no-js-hidden.quick-add-hidden {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    z-index: 5
}

.slider-buttons.no-js-hidden.quick-add-hidden  > button {
    background: white
}

.slider-counter.caption {
    display: none;
}
}

Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!

1 Like