Re: Adjusting Product Image Layout

Adjusting Product Image Layout

samueljoonjung
Explorer
60 0 15

How do I get the product image to take up the whole space. Right now, there is a space above and below the product photo. I want to make it so that it is not a square but a rectangle like the "HOURS" website so that it could fill the space above, where it meets the line of the header. And if possible, to make the slide arrows similar to HOURS as well where it's in the product photo and to the sides. My url is www.whoglobal.shop

samueljoonjung_0-1740922042052.pngIMG_D118E4455B6F-1.jpeg

Replies 5 (5)

CodingFifty
Shopify Partner
913 136 166

Hi @samueljoonjung,


Go to Online Store, then Theme, and select Edit Code.
Search for base.css/theme.css/style.css/main.css/custom.css file Add the provided code at the end of the file.

@media screen and (max-width: 749px) {
    .grid--peek.slider--mobile {
        margin: 0;
        width: 108% !important;
    }
    product-info#MainProduct-template--24123061305640__main {
    padding-top: 0px !important;
}

.product__media-item {
    padding: 0px !important;
    margin: 0px !important;
}
.product__media-wrapper slider-component:not(.thumbnail-slider--no-slide) {
       overflow-x: hidden !important;
    }
    .slider.slider--mobile {
        scroll-padding-left: 0px !important;
    }
}
Coding Fifty || Shopify Partner
For any custom section queries, please visit: Fiverr Profile
Found my response useful? Like it and mark as Accepted Solution!
For additional discussions, reach out via: Email ID: codingfifty@gmail.com
samueljoonjung
Explorer
60 0 15

 

This is what I got from that. It's definitely closer but it's still not long vertically like the HOURS product page.

ds.jpeg

samueljoonjung_0-1740941886622.jpeg

 

CodingFifty
Shopify Partner
913 136 166

 

Try this code.

@media screen and (max-width: 749px) {
    .grid--peek.slider--mobile {
        margin: 0;
        width: 108% !important;
        height: 68vh !important;
    }
    product-info#MainProduct-template--24123061305640__main {
    padding-top: 0px !important;
}

.product__media-item {
    padding: 0px !important;
    margin: 0px !important;
}
.product__media-wrapper slider-component:not(.thumbnail-slider--no-slide) {
       overflow-x: hidden !important;
    }
    .slider.slider--mobile {
        scroll-padding-left: 0px !important;
    }
}

 

Coding Fifty || Shopify Partner
For any custom section queries, please visit: Fiverr Profile
Found my response useful? Like it and mark as Accepted Solution!
For additional discussions, reach out via: Email ID: codingfifty@gmail.com
samueljoonjung
Explorer
60 0 15

Thanks so much!

samueljoonjung
Explorer
60 0 15

Hi, I took a look back at my mobile website and though that works for the hoodie, it doesn't exactly work for the shirt because there is a bit of space above between the header and picture. Is there anyway to make all products to be like the hoodie so that when I also add a new product as well, it will show like the hoodie?

samueljoonjung_0-1741009570736.pngsamueljoonjung_1-1741009612530.png