Shopify themes, liquid, logos, and UX
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
Hello, the CTA buttons on product pages are different sizes. All of the buttons on my site have a padding of 14px. When I try to change the size of the Shop Pay button, the padding is black while the button is purple. This is a dynamic button so depending on the customers payment preference, that specific buy button with formulate. Can anyone help make these buttons the same size with a padding of 14px?
https://2d26b3.myshopify.com/products/zz?variant=47134173724968
pw: reishi
Thank you!
Solved! Go to the solution
This is an accepted solution.
Hi!
Actually, a unit like 'vh' was used instead of padding.
The following code will do what you want. You can change the values as you like. If you encounter any issues again, feel free to write, I'll help.
1) Navigate to the 'Edit Code' option in your theme settings, then search for 'theme.liquid' in the search bar.
2) Paste the following code below the '<head>' tag. Please refer to the attached screenshot for guidance.
<style>
.shopify-payment-button__button {
height: 6.5vh!important;
}
</style>
This is an accepted solution.
Hi!
Actually, a unit like 'vh' was used instead of padding.
The following code will do what you want. You can change the values as you like. If you encounter any issues again, feel free to write, I'll help.
1) Navigate to the 'Edit Code' option in your theme settings, then search for 'theme.liquid' in the search bar.
2) Paste the following code below the '<head>' tag. Please refer to the attached screenshot for guidance.
<style>
.shopify-payment-button__button {
height: 6.5vh!important;
}
</style>
You are welcome 😉
Let me know if you need any further assistance. Feel free to tag me or send a private message when opening a new topic. If I find time outside of our software and "Shopify Premium Support" service, I can assist.
Terence.