Product layout

Solved

Product layout

projectthirteen
Excursionist
51 0 4

Hey, 

can anyone help me make my product images bigger so that it stretches to the end of the screen rather than having padding. See an image below of my current store and what im hoping to achieve. 

Any help would be unreal. 

Ive attached my store URL at the bottom.

Screen Shot 2024-08-12 at 6.30.36 pm.png

Screen Shot 2024-08-12 at 6.30.57 pm.png

 

URL: https://project-thirteen.com.au

 

Accepted Solution (1)
Artzen_tech
Shopify Partner
552 113 112

This is an accepted solution.

Hi @projectthirteen 
You can do one thing, go to main-product.liquid file and remove page-width class from their.

Artzen_tech_0-1723453316722.png


And it will be full width

Artzen_tech_1-1723453338627.png

 

 

If helpful, please Like and Accept this Solution to help others
Artzen Technologies | A Shopify Development Agency
WhatsApp - 9877983930

Book FREE CONSULTATION who want to migrate to Shopify or want to start an eCommerce business with Shopify

View solution in original post

Replies 7 (7)

Artzen_tech
Shopify Partner
552 113 112

Hi @projectthirteen 

Its Artzen Technologies! We will be happy to help you today.

 

You can follow the below css which I have mentioned. And check the result.
1) Go to your Online Store
2) Edit Code
3) Find CSS File
4) Add the following CSS

 

 

.product__media-item .product-media-container.constrain-height.media-fit-contain {
    width: 100%;
}

 

 

 

Artzen_tech_0-1723452296128.png

 

 

If my solution helped you, then please mark it as accepted.

Let me know if need further assistance
Regards,
Artzen Technologies

 

If helpful, please Like and Accept this Solution to help others
Artzen Technologies | A Shopify Development Agency
WhatsApp - 9877983930

Book FREE CONSULTATION who want to migrate to Shopify or want to start an eCommerce business with Shopify
projectthirteen
Excursionist
51 0 4

Hey @Artzen_tech sorry this didnt work

projectthirteen
Excursionist
51 0 4

... it still has padding 

Screen Shot 2024-08-12 at 6.56.42 pm.png

 

Is there anything else I could try?

Artzen_tech
Shopify Partner
552 113 112

This is an accepted solution.

Hi @projectthirteen 
You can do one thing, go to main-product.liquid file and remove page-width class from their.

Artzen_tech_0-1723453316722.png


And it will be full width

Artzen_tech_1-1723453338627.png

 

 

If helpful, please Like and Accept this Solution to help others
Artzen Technologies | A Shopify Development Agency
WhatsApp - 9877983930

Book FREE CONSULTATION who want to migrate to Shopify or want to start an eCommerce business with Shopify
projectthirteen
Excursionist
51 0 4

thanks, do you know how to centre the text there instead of it sitting on the left?

dws_pvt_ltd
Shopify Partner
317 64 90

Hello @projectthirteen, It can do it with some changes in the Code and Add/Edit CSS code.

Go to your product page section, in this above the div of class containing "product product--medium" there is a div with class name "page-width", please remove that class only of the page-width. Add the below CSS in the product CSS file which is "section-main-product.css". please find the CSS class with below code in that file and see the results.

.product.grid {
    overflow: hidden; /* add this new css */
    gap: 0;
}

.product-media-container.constrain-height.media-fit-contain {
    --contained-width: calc(var(--constrained-height)* var(--aspect-ratio));
    width; min(var(--contained-width),100%); /* remove or comment this css */
    width: 100%; /* add this new CSS */
}

@media screen and (min-width: 750px) {
    .product__info-wrapper.grid__item {
        padding: 0px 7rem 0 5rem; /* update this CSS */
    }
}

/* add this CSS at end of the file */
@media screen and (max-width: 749px) {
    .product__info-wrapper.grid__item {
        padding: 0 2rem 0 2rem !important; /* add this CSS */
    }
}

 

See the output below,

dws_pvt_ltd_0-1723453613447.pngdws_pvt_ltd_1-1723453639006.png

 

Feel free to reach out if you have any questions or need assistance.
Best Regards,
DWS.

Helpful? then please Like and Accept the Solution.
For any inquiries, please feel free to contact via WhatsApp and Email: sales@dolphinwebsolution.com.
For more information visit our website Dolphin Web Solution Pvt Ltd.
projectthirteen
Excursionist
51 0 4

Thanks for that, it looks great on mobile but would you know how to make the product image (only on mobile) cover the whole screen (like the below image) 

Any help would be great. 

IMG_1306.PNG

IMG_1307.PNG