How to change Price font size, weight, or color on Product Page?

Solved

How to change Price font size, weight, or color on Product Page?

MyCsPiTTa
Excursionist
28 0 4

Hi all,

 

Would love if someone could suggest how to do this on my site www.gardenhearth.co.uk 

 

I've tried a few solutions to other people's same question, but none worked for me. This included pasting various snippets into either theme.liquid or base.css.

 

Thanks in advance!

Accepted Solution (1)

Tech_Coding
Shopify Partner
504 128 126

This is an accepted solution.

Hello @MyCsPiTTa 

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>
   .product .price__regular dd span.price-item.price-item--regular{
      color: red !important;
      font-weight: 900 !important;
      font-size: 30px !important;
   }
</style>
RESULT:

Tech_Coding_0-1736480565419.png

my reply helpful? Click Like to let me know!
your question answered? Mark it as an Accepted Solution.

my reply helpful? Click Like to let me know!
your question answered? Mark it as an Accepted Solution.
Shopify UI Developer
Your Coffee Tips adds a little sweetness to my day.

View solution in original post

Replies 4 (4)

Tech_Coding
Shopify Partner
504 128 126

This is an accepted solution.

Hello @MyCsPiTTa 

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>
   .product .price__regular dd span.price-item.price-item--regular{
      color: red !important;
      font-weight: 900 !important;
      font-size: 30px !important;
   }
</style>
RESULT:

Tech_Coding_0-1736480565419.png

my reply helpful? Click Like to let me know!
your question answered? Mark it as an Accepted Solution.

my reply helpful? Click Like to let me know!
your question answered? Mark it as an Accepted Solution.
Shopify UI Developer
Your Coffee Tips adds a little sweetness to my day.
MyCsPiTTa
Excursionist
28 0 4

Thanks so much! That worked perfectly, though I added my custom color.

Dan-From-Ryviu
Shopify Partner
10791 2134 2253

Hi @MyCsPiTTa 

You can do that by adding this code to Custom CSS in Sales Channels > Online Store > Themes > Customize > Theme settings. 

.product .price--large {
    color: red; /* color of price */
    font-size: 2rem; /* font size of price */
    font-weight: 700;  /* font weight of price */
}

- Solved it? Hit Like and Accept solution! ❤️Buy Me Coffee❤️
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.

MyCsPiTTa
Excursionist
28 0 4

Thanks Dan! 

 

Yours worked too, but I had to add it under base.css, not theme.liquid.

 

The difference between yours and Tech's solution is yours changes the price value and the word "Price", while Tech's only changes the price value.

 

Both great solutions, depending on the need 😊👍