Hi community! hope everyone is well.
I need help with the design of my product page, I would like to add arrows on the main image so the user knows there are more images to see on this product.
What do you think?
Is it necessary?
And how do I do it?
I realized that I need to change the code and I don’t really understand codes
I would love to hear from you
thanks and all the best
Moshe
EBOOST
April 9, 2024, 6:23am
2
Hi @MosheKapetas ,
If you use “Dawn” theme. May I suggest to update code these steps:
Go to Store Online-> theme → edit code
Assets/section-main-product.css
Add code below to end of file
@media screen and (min-width: 750px) {
.product--thumbnail .product__media-item:not(.is-active),
.product--thumbnail_slider .product__media-item:not(.is-active) {
display: block;
width: 100%;
max-width: 100%;
}
.product-media-modal__content > .product__media-item--variant.product__media-item--variant {
display: block;
width: 100%;
max-width: 100%;
}
media-gallery [id^="GalleryViewer"] .slider + .slider-buttons {
display: flex!important;
}
media-gallery [id^="GalleryViewer"]{
position: relative;
}
media-gallery [id^="GalleryViewer"] .slider-buttons button {
position: absolute;
top: 50%;
transform: translateY(-50%);
left: 0;
z-index: 2;
}
media-gallery [id^="GalleryViewer"] .slider-buttons button.slider-button--next{
right: 0;
left: auto;
}
media-gallery [id^="GalleryViewer"] .slider-buttons .icon {
height: 1.6rem;
}
}
Snippets/product-media-gallery.liquid
add “slider–tablet-up” class. You can refer the screenshot below to add this class