Help rearrange layout of product information on product page ONLY on desktop

Topic summary

A user wants to reposition the Buy Buttons to the bottom of the product information section on desktop view only, while keeping the mobile layout unchanged.

Current situation:

  • Desktop layout has Buy Buttons positioned higher in the product info section
  • Mobile layout is already satisfactory and should remain as-is

Solution provided:
CSS code using flexbox and media queries:

  • Applies display: flex and flex-direction: column to the product info container
  • Uses @media (min-width:750px) to target desktop only
  • Sets order: 5 on the product form element to move it to the bottom

Implementation:

  • First try adding the CSS to the “Custom CSS” field in the Product info section
  • If that doesn’t work, add a “Custom Liquid” section below product info and wrap the code in <style> tags

Status: Resolved - the user confirmed the solution worked perfectly.

Summarized with AI on October 25. AI used: claude-sonnet-4-5-20250929.

Hi! This is what my product information looks like in desktop view.

And I like this layout when it’s on mobile, so I’d like to keep it this way there. But on desktop view, I would want the Buy Buttons to be on the bottom of the section, like this:

Please help me with this, thanks in advance:

crescent.hu

Pw : theaba

3 Likes

Here is the CSS:

.product__info-container {
  display: flex;
  flex-direction: column;
}

.product__info-container > * {
  width: 100%;
}

@media (min-width:750px) {
  div:has(> product-form) {order: 5;}
}

Try it in the “Custom CSS” of the Product info section first, if not accepted, add a “Custom Liquid” section right below the “product info” and paste the code there, wrapped with <style></style>

The code does not affect the mobile layout.

1 Like

Thank you so much! Perfect