Shopify themes, liquid, logos, and UX
Hi all,
How do I make the font sizes of the prices smaller and bold? I have tried some CSS codes (which I found in several Shopify threads), and the bold part was working. However, making the font size of the prices smaller did not work. Ideally, I would also like the flexibility to give my promo/sale prices a different color. Can someone help me with a complete, correct CSS code and a walkthrough to get this implemented?
Thank you in advanced!
Solved! Go to the solution
This is an accepted solution.
You can add code by following these steps
1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file
3. Paste the below code before </body> on theme.liquid
<style>
.price__regular {
font-weight: 600;
font-size: 14px !important;
}
s.price-item.price-item--regular {
color: blue !important;
}
span.price-item.price-item--sale.price-item--last {
color: chocolate !important;
}
</style>
Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.
This is an accepted solution.
This is an accepted solution.
You can add code by following these steps
1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file
3. Paste the below code before </body> on theme.liquid
<style>
span.price-item.price-item--sale.price-item--last {
font-weight: 700 !important;
font-size: 14px !important;
}
</style>
Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.
Hello @TOC-MR
would you like to share your store URL and password if any please.
so i can check and provide you possible solution for your question.
This is an accepted solution.
You can add code by following these steps
1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file
3. Paste the below code before </body> on theme.liquid
<style>
.price__regular {
font-weight: 600;
font-size: 14px !important;
}
s.price-item.price-item--regular {
color: blue !important;
}
span.price-item.price-item--sale.price-item--last {
color: chocolate !important;
}
</style>
Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.
almost there, i want the sales price also to be bold and ajustubale in size
You can add code by following these steps
1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file
3. Paste the below code before </body> on theme.liquid
<style>
.price--on-sale .price-item--regular {
color: blue !important;
font-size: 13px !important; /*adjust according to you*/
}
</style>
Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.
This is an accepted solution.
red price is not bold yet. What am i doing wrong in the code 🙂
This is an accepted solution.
You can add code by following these steps
1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file
3. Paste the below code before </body> on theme.liquid
<style>
span.price-item.price-item--sale.price-item--last {
font-weight: 700 !important;
font-size: 14px !important;
}
</style>
Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.
perfect 🙂 Thanks!
Hey @TOC-MR
Can you share your Store URL and Password if enabled?
Best Regards,
Moeed
Hey @TOC-MR
Follow these Steps:
1) Go to Online Store
2) Edit Code
3) Find theme.liquid file
4) Add the following code in the bottom of the file above </body> tag
<style>
.price__regular .price-item--regular {
font-weight: bold !important;
font-size: 14px !important;
}
</style>
RESULT:
If I managed to help you then, don't forget to Like it and Mark it as Solution!
Best Regards,
Moeed
will try. Do you also have a part of the code to give promotion/sales price another color?
Hi @TOC-MR
Check this one.
.price-item.price-item--regular {
font-weight: 900;
font-size: 1.5rem;
}
.price-item--sale.price-item--last {
color: red;
font-weight: 900;
font-size: 1.5rem;
}
Hey 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, 2025Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025