- This topic has 5 replies, 2 voices, and was last updated 3 years, 7 months ago by .
Viewing 6 posts - 1 through 6 (of 6 total)
Viewing 6 posts - 1 through 6 (of 6 total)
- You must be logged in to reply to this topic.
Stripe payment plugins for your WordPress site
· ·
Home › Forums › Stripe Payments Plugin › About CSS customizing of Payment Popup
Hello,
Regarding the color of the button of Payment Popup, I’ve tried to change the color using css, but following selectors didn’t work for it.
https://pasteboard.co/JXznMoU.png
I would be happy if you could give me an advice what selector should I use.
<tried selectors>
“#submit-btn”
“.pure-button, .pure-button-primary”
“.pure-button-primary, .pure-button-selected, a.pure-button-primary, a.pure-button-selected”
<tried property>
background-color: #000 !important;
I referenced following article:
Thank you for your corporation.
Regards,
Riki
That’s easy, try this …
button#submit-btn.pure-button {
background: #000000;
}
Thank you for your quick support!
I tried the one with “!important” but still didn’t work.
Following is the site page. Also WP theme is “Twenty Twenty” and I’m using as almost default. [torihom.com/paymentdemo]
Is there other way to change the color?
Thank you,
The code above should work if you put it inside Stripe Payments – Settings – Advanced Settings – Payment Popup Additional CSS
The code worked well as you advised.
Thank you so much for your support!
No problem, your CSS was probably fine except the payment popup loads an iframe which is no longer accessible using CSS from outside the frame. The plugin option loads the CSS inside the iframe.