Goal: change the ‘Pay with PayPal’ button color on a product page (Shopify DAWN 15) from yellow to a light gray.
What was tried: custom CSS targeting .button and div[data-testid=“PayPalInContext-button”][role=“button”]. The style briefly applied but the button became “movable,” and the selector seemed invalid, so the button reverted to PayPal’s yellow.
Proposed solutions:
Edit theme.liquid and add custom code before (details not visible in the post; a screenshot shows a result, but the OP reports it didn’t work).
Add CSS in base.css targeting PayPal classes: .paypal-button.paypal-button-color-gold and .paypal-button-row.paypal-button-color-gold .menu-button with background-color set to a custom value. Initial reply had a typo (“back ground-color”); later corrected to “background-color.”
OP feedback: both initial attempts did not work. The responder asked if the corrected CSS (with background-color) was tested.
Context: a product link and before/after screenshots were provided to show expected vs. actual button color.
Status: unresolved/ongoing. Awaiting confirmation whether the corrected CSS works; correct selector/method for styling the PayPal button remains an open question.
Summarized with AI on December 25.
AI used: gpt-5.
I’m using the DAWN 15 theme for my website, and in order to make the “Pay with PayPal” button light gray, I added the following code to the CSS in the “Product Info” section:
However, now it seems that the button has become movable, and the system considers “PayPalInContext-button” to be incorrect for the code to work, and the button has therefore turned yellow again.
At the time of responding to you, I forgot to add “color” to the background, so I decided to edit my response. I’m not sure if you saw the updated code (background-color) - have you tried that code and it didn’t work?