Hello,
For product pages, I want to use images in one column all the way down instead of one large image
and then two small images. Like this
instead of this
A user wants to change the Dawn theme’s product page image layout from a grid (one large image with two smaller ones) to a single-column stack of full-width images.
Solution provided:
Add custom CSS code to the base.css file in the theme’s Asset folder. The working code uses a media query to set product media items to 100% width on screens 750px and wider.
Key steps:
base.css under Asset folder.product__media-item.grid__itemResolution:
After two iterations (initial code was missing a period, then needed max-width property added), the solution successfully changed the layout to single-column stacked images. Multiple users confirmed it worked for their stores.
Hello,
For product pages, I want to use images in one column all the way down instead of one large image
and then two small images. Like this
instead of this
Hi @jaesielee ,
Just follow the instructions below.
Go to your Admin page > Online store > Themes > Actions > Edit code.
Open the base.css file under Asset folder and paste the code below.
@media screen and (min-width: 750px) {
product__media-item.grid__item {
width: 100% !important
}
}
It’s not working.. still two columns
Sorry.. missing a period.
@media screen and (min-width: 750px) {
.product__media-item.grid__item {
width: 100% !important
}
}
May I have your website?
Try this actually.
@media screen and (min-width: 750px) {
.product__media-item.grid__item {
width: 100% !important;
max-width: 100% !important;
}
}
worked
thank you
Please close the query by selecting the answer. Thank you
worked perfectly for me! thank you!