Hi, I wanted to increase the font-size of my price tag on the product page and make them Bold. Also preferably the compared-to-price greyish while the actual price is black. How can I make this happen?
Hi Sharon I need your help.
Hi @blasoo ,
Would you mind to share your URL website? with password if its protected. Thanks!
Thank you for the information. Try this one.
- From your Shopify admin dashboard, click on āOnline Storeā and then āThemesā.
- Find the theme that you want to edit and click on āActionsā and then āEdit codeā.
- In the āAssetsā folder, click on ābase.css, style.css or theme.cssā file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:
- And Save.
.price__container span.price-item.price-item--sale.price-item--last {
font-size: 25px;
font-weight: bolder;
}
Result:
I hope it help.
You are the best! Thank you so much! I am awful at coding, and I was still wondering how to enlarge the compared-at-price and how to make it say the āAlennus 50%ā instead of the Sale
Yes we can enlarge the that one. And you can change the size. We can also change the sale badge but we need to remove 1st the Sale. And put another one because if not it needs to edit the html.
Try this.
span.badge.price__badge-sale.color-accent-1 {
display: none;
}
.price__container:after {
content: "Alennus 50%";
position: absolute;
height: 16px;
font-size: 12px;
background: blue;
color: white;
padding: 0 2px 0 2px;
}
.price__sale s.price-item.price-item--regular {
font-size: 25px;
}
Result:
If my answer give you solution, please dont forget to MARK SOLUTION and Likes for tips. Thanks!
Hi there! I used your code, but the problem is I only made discounted prices bold, regular non-discounted prices stayed unchanged.


But I want to leave my strike-through price unchanged, I donāt want to make it bold.



