Woopayments Style Form
-
Hi there,
I’write cause I’m experiencing an issue styling WooPayments fields in checkout page.
In other topics, everyone link these pages:
https://woocommerce.com/document/stripe/customization/style-payment-form/
https://woocommerce.com/document/woopayments/customization-and-translation/customize-payments-appearance/No changes appear to me, no matter what I did.
Clear transient via the code below broke the site:delete_transient( 'wcpay_upe_appearance' );
delete_transient( 'wcpay_wc_blocks_upe_appearance' );I’m just asking for 3 simple options:
- font color
- fields background
- fields borders
Below instructions was added to my functions.php without effect:
add_filter( 'wcpay_upe_appearance', function ( $appearance ) { $appearance->variables->{'colorDanger'} = '#00FFFF'; return $appearance; } );
oradd_filter( 'wc_stripe_upe_params', function ( $stripe_params ) { /** * Custom shortcode checkout styles -- Use Stripe's Flat Theme */ $stripe_params['appearance'] = (object) [ 'theme' => 'flat' ]; /** * Custom Block checkout styles -- Use Stripe's Night Theme with custom variables + rules */ $stripe_params['blocksAppearance'] = (object) [ 'theme' => 'night', 'variables' => (object) [ 'colorPrimary' => '#FFA500', ], 'rules' => (object) [ '.Input' => (object) [ 'backgroundColor' => '#212D63', 'border' => '1px solid var(--colorPrimary)', ] ], ]; return $stripe_params; } );
FYI: I’m running WooPayments Credit Cart method in test mode… this can impact on iframe/form style?
Any help?
- You must be logged in to reply to this topic.