Shopify themes, liquid, logos, and UX
How to struggling to rezise the "buy now button" to as big as the add to cart button.
Hey @Isakeve08,
Can you share the link to your store please? Thanks!
Hey @Isakeve08,
Go to your theme's "Edit Code" Option, then in the search bar type "theme.liquid"
Below the tag "<head>" tag paste the following. Screenshot attached for reference.
<style>
.shopify-payment-button,
.shopify-payment-button * {
height: 100% !important;
}
.shopify-cleanslate {
height: 0 !important;
}
</style>
Screenshot is for reference only, the correct code to paste is the one shown above.
*Edited*
Hey @Isakeve08,
Can you remove the previous code and replace it with this? The instructions are the same as shown above.
<style>
.shopify-payment-button,
.shopify-payment-button * {
height: 100% !important;
}
.shopify-cleanslate {
height: 0 !important;
}
body:has(div[data-testid="PayPalInContext-button"]) button.shopify-payment-button__more-options.BUz42FHpSPncCPJ4Pr_f {
position: absolute !important;
height: fit-content !important;
}
body:has(div[data-testid="PayPalInContext-button"]) .shopify-payment-button {
position: relative !important;
}
@media only screen and (max-width: 989px) {
body:has(div[data-testid="PayPalInContext-button"]) .rbr-page-container {
margin-top: 40px !important;
}
}
</style>
Hi @Isakeve08
This is Richard from PageFly - Shopify Page Builder App
Please add this code to your theme.liquid above the </head> to get this solved
Step 1: Online Stores > Themes > More Actions > Edit code
Step 2: click on theme.liquid and paste the code above the </head>
<style>
.shopify-payment-button__button {
height: 60px;
}
</style>
Hope this can help you solve the issue
Best regards,
Richard | PageFly
Please let me know if it works by giving it a Like or marking it as a solution!
➜ Optimize your Shopify store with PageFly Page Builder (Free plan available)
All features are available from Free plan. Live Chat Support is available 24/7.
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025