Thanks so much fo the fast reply. I was able to use a custom template for the “simple” style and added this php. That’s a lot of lines, is there a short hand version of that? Like a way to assign to all of the inputs in one line?
Kind Regards,
Chris
add_filter('wc_stripe_get_card_custom_field_options', function($options){
$options['cardNumber']['style']['base']['fontSize'] = '16px';
$options['cardExpiry']['style']['base']['fontSize'] = '16px';
$options['cardCvc']['style']['base']['fontSize'] = '16px';
$options['cardNumber']['style']['base']['color'] = '#303386';
$options['cardExpiry']['style']['base']['color'] = '#303386';
$options['cardCvc']['style']['base']['color'] = '#303386';
$options['cardNumber']['style']['base']['fontFamily'] = 'freight-text-pro';
$options['cardExpiry']['style']['base']['fontFamily'] = 'freight-text-pro';
$options['cardCvc']['style']['base']['fontFamily'] = 'freight-text-pro';
$options['cardNumber']['style']['base']['fontWeight'] = '400';
$options['cardExpiry']['style']['base']['fontWeight'] = '400';
$options['cardCvc']['style']['base']['fontWeight'] = '400';
$options['cardNumber']['style']['base']['letterSpacing'] = '.8px';
$options['cardExpiry']['style']['base']['letterSpacing'] = '.8px';
$options['cardCvc']['style']['base']['letterSpacing'] = '.8px';
$options['cardNumber']['style']['invalid']['color'] = '#a00';
$options['cardExpiry']['style']['invalid']['color'] = '#a00';
$options['cardCvc']['style']['invalid']['color'] = '#a00';
$options['cardNumber']['style']['empty']['::placeholder']['color'] = '#b8bad1';
$options['cardExpiry']['style']['empty']['::placeholder']['color'] = '#b8bad1';
$options['cardCvc']['style']['empty']['::placeholder']['color'] = '#b8bad1';
return $options;
});