Shopify themes, liquid, logos, and UX
I am on Dawn 15 theme and I would like to change the layout of the price to display ON SALE price followed by WAS Price (original price) on the product page. Can you help me by providing instructions on where this can be changed and how?
https://www.artey.com.au/products/rubi
Hi @Artey,
Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code
Step 2: Search file theme.liquid
Step 3: Insert this code above </head> tag:
<style>
.price__sale {
display: flex !important;
flex-direction: column !important;
}
span:has(.price-item.price-item--regular) {
order: 2;
}
span.price-item.price-item--sale.price-item--last {
order: 1;
}
</style>
Here is result:
Hope this can help you,
If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you 😍
If our suggestions are useful, please let us know by giving it a like, marking it as a solution, or donating here ☕.
B2B Solution & Custom Pricing | Product Labels by BSS
Need help from our expert? Kindly share your request with us via community@bsscommerce.com
Hello. Thank you for the initial response. What about for changing the words used? I want to change the word "From" to "Was". I also want to add the words ON SALE and make it BOLD and bigger than the from price.
Thank you.
We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024The Hydrogen Visual Editor is now available to merchants in Shopify Editions | Summer '...
By JasonH Sep 2, 2024