How to Make slider on product page

Solved
PetNShop
Tourist
5 0 2

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.IMG_1290.jpeg

Accepted Solution (1)
Made4uo-Ribe
Shopify Partner
4175 954 1162

This is an accepted solution.

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;
}
}

 

  • And Save.
  • Result:
  • Made4uoRibe_0-1698797948694.png

     

 

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

 

 

 

 

Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
Need a knowledgeable developer? Come and visit us at

Made4uo.com


View solution in original post

Reply 1 (1)
Made4uo-Ribe
Shopify Partner
4175 954 1162

This is an accepted solution.

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;
}
}

 

  • And Save.
  • Result:
  • Made4uoRibe_0-1698797948694.png

     

 

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

 

 

 

 

Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
Need a knowledgeable developer? Come and visit us at

Made4uo.com