Shopify themes, liquid, logos, and UX
How to change sale price color without affecting regular price color. I use sense theme.
Hi @medusasmakeup ,
This is Amelia from PageFly - a Landing Page Builder App
You can use custom CSS. Here's how you can do it:
Go to your Shopify admin panel.
Navigate to Online Store > Themes.
Click on Actions > Edit code next to your Sense theme.
In the left sidebar, find and click on the Assets folder.
Open the base.css file (or theme.css if you have it).
Add the following CSS code at the bottom of the file:
/* Change sale price color */
.price__sale .price-item--sale {
color: #ff0000; /* Replace with your desired color */
}
/* Ensure regular price color remains unchanged */
.price__regular .price-item--regular {
color: inherit; /* Keeps the regular price color as defined elsewhere */
}
I hope that my solution works for you.
Best regards,
Amelia | PageFly
Please let me know if it works by giving it a Like or marking it as a solution!
➜ Optimize your Shopify store with PageFly Page Builder (Free plan available)
➜ Weekly updated Shopify tutorials on YouTube
All features are available from Free plan. Live Chat Support is available 24/7.
1) Go to Online Store
2) Edit Code
3) Find theme.css/base.css file
4) Add the following code in the bottom
/* Sale price styling */
.price--highlight {
color: #ff0000 !important; /* Change to your desired color */
font-weight: bold !important; /* Optional: Make the sale price bold */
}
/* Regular price styling */
.price--regular {
color: #333333 !important; /* Keep the regular price a different color */
}
Thanks!
if you find my advice helpful please remember to LIKE and accept as SOLUTION.
Hi @medusasmakeup,
Others have shown you how to change the sale price, but if you encounter difficulties with coding, you can utilize our Price Badges feature to adjust the size, color, format, etc., of prices. Additionally, you can add a badge alongside to emphasize and highlight the discount program as illustrated below:
As 2024 wraps up, the dropshipping landscape is already shifting towards 2025's trends....
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024In today’s interview, we sat down with @BSS-Commerce to discuss practical strategies f...
By JasonH Nov 13, 2024