We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Text Sizing

Solved

Text Sizing

marc-everlast
Tourist
11 1 2

I need help with a few things. I want to increase the size of the Save $1.97 and fix the strikethrough for the discounted price so it accurately goes through the price. My theme doesn't have the base.css, theme.liquid, or any of the ones the internet or ChatGPT suggests. I was able to use the code below to fix the size of the other prices on the line in the Custom CSS editing section. 

.formatted-price {
font-size: 1.3rem;
margin-left: 0.8rem;
}

What text can I add to the CSS to fix that sizing?

 

Screenshot 2025-06-13 at 4.58.57 PM.jpeg

Accepted Solution (1)

devcoders
Shopify Partner
1654 190 499

This is an accepted solution.

Hello @marc-everlast 

1. From your Shopify Admin, navigate to Online Store > Themes > Edit Code
2. In the Assets folder, open components.css and add your CSS code at the end

[data-on-sale] .block-price__save {
    font-size: 1.3rem;
}

 

devcoders_0-1749869940972.png

 

 

Shopify Developer: Helping eCommerce Stores
If you need assistance with your store, feel free to contact us at devcodersp@gmail.com
WhatsApp No: +91 8516919310 If my assistance was helpful, please consider liking and accepting the solution. Thank you!

View solution in original post

Replies 5 (5)

NerdCurator
Shopify Partner
454 81 117

@marc-everlastCan you please provide the URL of your store and if it is password protected please share the password too. Thanks

Believes in delivering optimizing web solutions | Shopify Partner | Working as a web developer for last 10+ years.
- Was my reply helpful? Click Like to let me know! Coffee tips fuel my dedication.
- Was your question answered? Mark it as an Accepted Solution
Email me: info@nerdcurator.com
marc-everlast
Tourist
11 1 2
NerdCurator
Shopify Partner
454 81 117

@marc-everlast  You need to add this code in the theme files. For which you need to go to Online Store > Actions (Active theme) > Edit Code > Assets, under assets add the code at the bottom of components.css file.

 

[data-on-sale] .block-price__save {
    font-size: 1.3rem;
}

 

Believes in delivering optimizing web solutions | Shopify Partner | Working as a web developer for last 10+ years.
- Was my reply helpful? Click Like to let me know! Coffee tips fuel my dedication.
- Was your question answered? Mark it as an Accepted Solution
Email me: info@nerdcurator.com
marc-everlast
Tourist
11 1 2

Thank you so much! This worked!

devcoders
Shopify Partner
1654 190 499

This is an accepted solution.

Hello @marc-everlast 

1. From your Shopify Admin, navigate to Online Store > Themes > Edit Code
2. In the Assets folder, open components.css and add your CSS code at the end

[data-on-sale] .block-price__save {
    font-size: 1.3rem;
}

 

devcoders_0-1749869940972.png

 

 

Shopify Developer: Helping eCommerce Stores
If you need assistance with your store, feel free to contact us at devcodersp@gmail.com
WhatsApp No: +91 8516919310 If my assistance was helpful, please consider liking and accepting the solution. Thank you!