Customizing checkout fields using actions and filters
-
Hi,
I need to edit WooCommerce checkout fields to change the placeholder text and on focus. This particular field isn’t translated and I don’t know why.I have tried this code and it works but on placeholder on focus doesn’t:
add_filter( ‘woocommerce_default_address_fields’ , ‘custom_override_default_address_fields’ );
function custom_override_default_address_fields( $address_fields ) {
$address_fields[‘address_2’][‘placeholder’] = ‘Nº de Apartamento/ Andar’;
return $address_fields;
}Thanks,
Patrícia
The page I need help with: [log in to see the link]
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Customizing checkout fields using actions and filters’ is closed to new replies.