Change photo layout on products page Dawn theme.

Topic summary

Goal: change the Dawn theme product page layout (desktop) so the first product image is full-width (hero) and subsequent images appear in a two-column grid.

Progress:

  • Attempted to remove the “page-width” class in product-main.liquid to go full-width, but product description/details shifted downward.
  • Proposed fix: replace “page-width” with a custom “product-main” class and add CSS using a grid (60%/40%) with width rules in base.css; this yields a two-column layout.

Current request:

  • Instead of two columns, implement a top full-width hero image followed by a two-up image grid, likely by adjusting section-main.product.css. Flexbox or CSS Grid is preferred for control.

Notes:

  • Dawn = Shopify’s default theme; product-main.liquid = product page template; Flexbox/Grid = CSS layout systems.
  • Images/screenshots are central to understanding the desired outcome.

Status & next steps:

  • No finalized code for hero-then-two-grid yet. Further CSS/media gallery customization is needed. Discussion remains open.
Summarized with AI on December 13. AI used: gpt-5.

Hello Shopify community,

I try to achieve something like this, any ideas how it can be done for desktop version of website? I use dawn theme

https://mwpcbi-sv.myshopify.com/products/test-item

https://pleasuresnow.com/products/fortnite-t-shirt-blue-moon?variant=41774173716503

Hi @junktiontbs

If You want it to be Full width like the reference you share for that you have to remove the page-width class from your product-main.liquid template.

If you can do it by Yourself that’s Good otherwise you can share your collaboration code I will do that for you

Hello Mehran,

I tried to remove, but then product description and details got down

here is code


    

      

        {% render 'product-media-gallery', variant_images: variant_images %}

@junktiontbs

Okay so instead of the page-width class add this product-main class and also add this CSS in your theme or base.css file

.product-main {
    display: grid;
    grid-template-columns: 60% 40%;
}

.product-main .product.product--large {
    width: 100%;
}

.product-main .product.product--large .product__media-wrapper {
    width: 100%;
    max-width: 100%;
}

.product-main .product__info-wrapper {
    width: 100%;
    max-width: 100%;
}

First use replace your page-width class with a product-main class like this

This is the final result

So, what i try to achieve, i think basiclly sits in section-main.product.css

firs photo i want to be full width and then it comes as others.

One main picture on top and then grid of 2 coming down.

just reject, popup, you see one big photo first and then grid of two photos coming down

Thank you mate, that flexbox seems something i am looking for.

I do have just one type of product as for now, so i just need to show it nicely like here in reference. I do not thing i have to change all product page or rewrite it, i think this sits somewhere in section-main.product.css

Here is reference i try to achive. big one hero image and thenn two grid layout