Dear Pros,
I need help on adding product slider onto my product page as shown and drawn. Please let me know how do I add it in coding. Thank you!
A user seeks guidance on implementing a product slider on their Shopify store’s product page using the Refresh theme. They’ve included a screenshot showing the desired placement.
Solution Provided:
Another user offers a code-based approach:
Key Technical Elements:
Status: The discussion appears to provide a starting implementation, though the code snippets are partially incomplete. No follow-up confirms whether the solution was successfully implemented.
Dear Pros,
I need help on adding product slider onto my product page as shown and drawn. Please let me know how do I add it in coding. Thank you!
Hi,
Add HTML for the Slider at the product template
Code example
Add CSS for Styling
CSS example
.product-slider {
position: relative;
width: 100%;
overflow: hidden;
}
.slider {
display: flex;
transition: transform 0.3s ease;
}
.slide {
min-width: 100%;
box-sizing: border-box;
}
.slide img {
width: 100%;
height: auto;
display: block;
}
.prev, .next {
position: absolute;
top: 50%;
transform: translateY(-50%);
background: rgba(0, 0, 0, 0.5);
color: #fff;
border: none;
padding: 10px;
cursor: pointer;
}
.prev {
left: 10px;
}
.next {
right: 10px;
}