hello,
i am changing placeholders on woocommerce checkout page form using child theme functions.php using “woocomerece_chcekout_fields” hook, when i refresh the page placeholders change for 2,3 second while page is loading and then again changes to defaults.
visit checkout form placeholder behavior FASHION HIVE
child theme php functions file attached.
CODE: (Placeholder which is not working)
function leo_custom_checkout_form_fields( $fields ) {
$fields[‘billing’][‘billing_address_1’][‘label’] = “Address”;
$fields[‘billing’][‘billing_address_1’][‘required’] = true;
$fields[‘billing’][‘billing_address_1’][‘placeholder’] = “FULL ADDRESS ( House# , Street# , Block , City )”;
return $fields;
}
add_filter( ‘woocommerce_checkout_fields’, ‘leo_custom_checkout_form_fields’);