Shopify themes, liquid, logos, and UX
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!
Sorry you are facing this issue, it would be my pleasure to help you.
Welcome to the Shopify community!😊
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.
AVADA - Top Rated App for Email, SMS, Popups
Check our website for full features and start a FREE TRIAL.
Install another app to boost sales, 100% FREE
The text I want to increase the size is カートに追加
The text I want to increase the size is カートに追加
sorry
It should be ok now!
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.
AVADA - Top Rated App for Email, SMS, Popups
Check our website for full features and start a FREE TRIAL.
Install another app to boost sales, 100% FREE
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
<style>
.product-form__cart-submit {
font-size: 16px !important;
}
</style>
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?
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.
AVADA - Top Rated App for Email, SMS, Popups
Check our website for full features and start a FREE TRIAL.
Install another app to boost sales, 100% FREE
User | RANK |
---|---|
120 | |
98 | |
74 | |
72 | |
45 |
Learn these 5 things I had to learn the hard way with starting and running my own business
By Kitana Jan 27, 2023Would you love to unleash the unbridled power of the Google Shopping Channel into your sho...
By Gabe Jan 6, 2023How can you turn a hobby into a career? That’s what Emmanuel did while working as a wa...
By Skye Dec 30, 2022