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.
The text I want to increase the size is カートに追加
The text I want to increase the size is カートに追加
@Masaru Please share your store URL and password(If it is password protected.). So that I can check and give you the exact solution.
Any solution?
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.
Nothing changed...
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...
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.
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.
Any solution?
Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024Digital marketers and app developers have tracked activity in apps and websites for yea...
By Ollie Mar 13, 2024February was an exciting month with Shopify Editions, informative webinars, and more! F...
By JasonH Mar 7, 2024