Hi @bastiaan1232!
Do you want to customize the placeholders of the checkout fields?
If so, you can use the code below, as displayed in this article, to add custom placeholders to your checkout fields.
add_filter( 'woocommerce_checkout_fields' , 'override_billing_checkout_fields', 20, 1 );
function override_billing_checkout_fields( $fields ) {
$fields['billing']['billing_first_name']['placeholder'] = 'Name';
$fields['billing']['billing_last_name']['placeholder'] = 'Last Name';
$fields['billing']['billing_company']['placeholder'] = 'Company name';
$fields['billing']['billing_postcode']['placeholder'] = 'Postal code';
$fields['billing']['billing_phone']['placeholder'] = 'Phone number';
$fields['billing']['billing_city']['placeholder'] = 'City';
$fields['shipping']['shipping_first_name']['placeholder'] = 'Name';
$fields['shipping']['shipping_last_name']['placeholder'] = 'Last Name';
$fields['shipping']['shipping_company']['placeholder'] = 'Company name';
$fields['shipping']['shipping_postcode']['placeholder'] = 'Postal code';
$fields['shipping']['shipping_phone']['placeholder'] = 'Phone number';
$fields['shipping']['shipping_city']['placeholder'] = 'City';
return $fields;
}
You can change the text between ''
(example: ‘Name’) in the code above and replace it with the text you want.
You can use a plugin like Code Snippets to add this snippet without having to edit your PHP code.
You can check more about customizing checkout fields here:
https://woocommerce.com/document/tutorial-customising-checkout-fields-using-actions-and-filters/
I hope this helps!