Increase size of the text on the Buy Button (just the text)

Hello, I recently managed to increase the size of my product page’s buy button, but now the text on it is pretty small.

Does anybody know a code to increase just the text?

Thank you!

1 Like

@Masaru

Sorry you are facing this issue, it would be my pleasure to help you.

Welcome to the Shopify community! :blush:
Thanks for your good question.

Please share your site URL,
I will check out the issue and provide you a solution here.

@Masaru Please share your store URL and password(If it is password protected.). So that I can check and give you the exact solution.

Hi @Masaru ,

Please share your store URL and if your store is password protected then please provide password too.

So that we can help you.

Thank you.

https://meritts-jp.com/products/300ml-portable-car-air-humidifier-usb-essential-oil-diffuser-cool-mist-maker-purifier-car-home-office-ultrasonic-humidifier

The text I want to increase the size is カートに追加

https://meritts-jp.com/products/300ml-portable-car-air-humidifier-usb-essential-oil-diffuser-cool-mi…

The text I want to increase the size is カートに追加

Any solution?

Any solution?

1 Like

@Masaru

sorry

It should be ok now!

1 Like

Hi @Masaru ,

You can follow the instruction below:

  1. Go to Online Store->Theme->Edit code
  2. Asset->/theme.css->paste below code at the bottom of the file:
.product-form__cart-submit {
   font-size: 20px !important;
}

NOTE: You can change value 20px to match your theme.

If you feel like my answer is helpful, please mark it as a SOLUTION. Let me know if you have any further questions.

@Masaru

great thanks can you please try this code

  1. Go to Online Store->Theme->Edit code
  2. Asset->/theme.css->paste below code at the bottom of the file.
button.btn.product-form__cart-submit {
    font-size: 24px; /* change value as you like */
}

I pasted, but nothing happened…

Nothing changed…

Hey! I actually added

.product-form__cart-submit { font-size: 16px !important; }

to my theme.liquid file and it worked!

Could you tell me the difference between .liquid and .css?

How do I know if I have to add a code in the .liquid or .css?

1 Like

@Masaru

thanks for update

Hi @Masaru ,

Usually on 1 site. You add code in liquid, it will take precedence when you add the css. But in case you add more levels of css, then the css file will be given priority, For example, you can add the below css on the theme.css file, it will be given priority.

.product-form__item .product-form__cart-submit {
   font-size: 20px !important;
}

If you feel like my answer is helpful, please mark it as a SOLUTION. Let me know if you have any further questions.