How to swap the positions of these two prices?

A user seeks to swap the display positions of two prices on their Shopify product page (original price and sale price).
Solutions Provided:
CSS-based approach: Add custom CSS to component-price.css using display: flex and flex-direction: row-reverse on the .price--on-sale .price__sale selector to reverse the price order.
Alternative method: Insert custom <style> code in theme.liquid file above the </body> tag.
Status: The original poster confirmed one solution worked successfully. Both approaches include visual examples showing the reversed price positions. The discussion appears resolved with working CSS solutions that don’t require theme-specific modifications.
How to swap the positions of these two prices?

Hi @CRART - could you share which Shopify Theme you are using, and a link to your store? ![]()
Hey @CRART
Follow these Steps:
Go to Online Store
Edit Code
Find theme.liquid file
Add the following code in the bottom of the file above tag
RESULT:
If I managed to help you then, don’t forget to Like it and Mark it as Solution!
Best Regards,
Moeed
sense,crartcase.com.thanks
thanks
Thank you for your reply. I’m glad to hear that the solution worked well for you. If you require any more help, please don’t hesitate to reach out. If you find this information useful, a Like would be greatly appreciated.
Hello @CRART
Go to online store ----> themes ----> actions ----> edit code ----> assets ----> component-price.css
add this code at the end of the file and save.
.price--on-sale .price__sale {
display: flex;
flex-direction: row-reverse;
}
result
If this was helpful, hit the like button and accept the solution.
Thanks