TOC-MR
June 27, 2024, 1:41pm
1
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!
2 Likes
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.
Moeed
June 27, 2024, 1:43pm
3
Hey @TOC-MR
Can you share your Store URL and Password if enabled?
Best Regards,
Moeed
TOC-MR
June 27, 2024, 1:45pm
4
Moeed
June 27, 2024, 1:48pm
5
Hey @TOC-MR
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
TOC-MR
June 27, 2024, 1:51pm
6
will try. Do you also have a part of the code to give promotion/sales price another color?
Hi @TOC-MR
Check this one.
From you Admin page, go to Online Store > Themes
Select the theme you want to edit
Under the Asset folder, open the main.css(base.css, style.css or theme.css)
Then place the code below at the very bottom of the file.
.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;
}
@TOC-MR
You can add code by following these steps
Go to Online Store β Theme β Edit code.
Open your theme.liquid file
Paste the below code before on theme.liquid
.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;
}
Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.
1 Like
TOC-MR
June 27, 2024, 2:09pm
9
almost there, i want the sales price also to be bold and ajustubale in size
@TOC-MR
You can add code by following these steps
Go to Online Store β Theme β Edit code.
Open your theme.liquid file
Paste the below code before on theme.liquid
.price--on-sale .price-item--regular {
color: blue !important;
font-size: 13px !important; /*adjust according to you*/
}
Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.
TOC-MR
June 27, 2024, 2:40pm
11
red price is not bold yet. What am i doing wrong in the code
@TOC-MR
You can add code by following these steps
Go to Online Store β Theme β Edit code.
Open your theme.liquid file
Paste the below code before on theme.liquid
span.price-item.price-item--sale.price-item--last {
font-weight: 700 !important;
font-size: 14px !important;
}
Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.
1 Like