Product prices on mobile are on wrong position. Don't know how to fix it

Topic summary

A user is experiencing a layout issue where product prices display in an incorrect position on mobile devices. Specifically, they want the promotional price to appear above the regular price.

Solution provided:

  • Navigate to Shopify admin → Online Store → Themes
  • Click Actions → Edit code on the active theme
  • Locate the CSS file (base.css, style.css, or theme.css) in the Assets folder
  • Add the following CSS code at the bottom:
@media only screen and (max-width: 500px) {
  .price.price--on-sale .price__sale {
    flex-direction: column-reverse;
  }
}

This CSS targets mobile screens (max-width 500px) and reverses the flex direction of sale prices, positioning the promotional price above the original price. The responder included a screenshot showing the expected result after applying this fix.

Summarized with AI on November 8. AI used: claude-sonnet-4-5-20250929.

Hi! My product prices are on this weird position on mobile. I want the promotional price to be above the first price. How can I fix it?

1 Like

Hi @Avvoyer

check thiso ne.

From your Shopify admin dashboard, click on “Online Store” and then “Themes”.

Find the theme that you want to edit and click on “Actions” and then “Edit code”.

In the “Assets” folder, click on “base.css, style.css or theme.css” file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:

@media only screen and (max-width: 520px){
.price.price--on-sale .price__sale {
    flex-direction:column-reverse;
}
}

And Save.

Result: