Shopify themes, liquid, logos, and UX
Currently our product pricing on product detail page is too spread out. I want the strikethrough price, current price and sale badge all on one line.
This is what we currently have:
This is what I would like
Hey @ChrisW3.
Here's how to achieve that:
1. Navigate to Sales Channels → Online Store → "Customize" button → Theme settings (Gear icon on the left sidebar) → Custom CSS
2. Add the following code:
@media screen and (min-width: 481px) {
li:has(.inc_vat_text) span {
display: flex !important;
gap: 10px !important;
margin-bottom: -30px !important;
}
}
3. Save (right top corner)
4. Hard refresh the storefront
If done correctly, the result should be like this:
The ruleset is only applied for 480+ px (so no mobile phones) as the single line gets too wide for small screens. Feel free to adjust the values as you see fit.
Please add this code below to Custom CSS in Sales channels > Online Store > Themes > Customize > Theme settings
.product-meta span {
display: flex !important;
align-items: center;
margin-right: 8px;
}
- Helpful? Like & Accept solution!
- Ryviu - Product Reviews & QA app: Collect customer reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- En...Sign up now.
Hi Dan, it looks better, thank you. How would I get the lower price first, then the sale price after, so it is more like this:
Please update the code
.product-meta span {
display: flex !important;
align-items: center;
margin-right: 8px;
order: 2;
}
.product-meta span.inc_vat_text {
order: 1 !important;
}
.product-meta span.percentage_text {
order: 3 !important;;
}
- Helpful? Like & Accept solution!
- Ryviu - Product Reviews & QA app: Collect customer reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- En...Sign up now.
Discover how to increase customer engagement on your store with articles from Shopify A...
By Jacqui Apr 23, 2025Hey Community 👋 Did you know that March 15th is National Everything You Think Is W...
By JasonH Apr 1, 2025Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025