I understand that this is an element that’s probably being injected by shopify itself - and that it’s part of the shopify pay’s branding, however it goes against our brand guidelines and it’s important for me to keep a unified colour scheme. I’ve tried injecting some js but to no avail. Can someone help me change the button’s background colour to #FFAB00, whilst also changing the text and the shop pay svg icon to black?
If possible, as a plus, i’d also like to remove the ‘more payment options’ text right below the shop pay button.
Here is an example product page
https://gamestore.mt/products/donkey-kong-bananza-nintendo-switch-2-pre-order
2 Likes
- You can’t style the Shop Pay button or remove the text—Shopify locks it to keep it secure.
-
The Shop Pay button is built using a locked design (called a closed Shadow DOM).
-
That means we can’t change how it looks—no colors, no fonts, nothing.
-
Shopify does this on purpose to keep the button consistent and secure across all stores.
- Hide the more payment options button
more-payment-options-link {
display: none;
}
Hello @R3dn0ze
Go to online store ----> themes ----> actions ----> edit code ----> base.css
add this code at the end of the file and save.
.gravity-button {
background-color: #FFAB00;
}
result
If this was helpful, hit the like button and accept the solution.
Thanks
Hi @R3dn0ze
This is built-in shopify button, which cannot be changed by adding CSS code.
Hi @R3dn0ze
Please open the file base.css, then add the following CSS code:
.gravity-button{
background-color: #FFAB00;
}
more-payment-options-link{
display: none;
}
Save the file and check the result.
Please let me know if it works as expected!
Best regards
Thank you for your reply, the more-payment-options-link code worked, however, the colour change for the main button didn’t work.
I’ve also added !important to both codes, but to no avail on .gravity-button
Thank you for this, better to know that i can’t
Appreciated