Adjusting placeholder text for businessname on checkoutpage
-
Hi,
I used this code in the functions.php file of my childtheme but I do not see any change. My goal: Change the placeholdr text of 1 field only (in dutch) Bedrijfsnaam (= companyname). I followed the docs on Woocommerce but I do not see any change on my checkout page. Am I using the ocrrect parameters?
Thank you for your help.
//Change fields checkoutpage
add_filter( ‘woocommerce_checkout_fields’ , ‘custom_override_checkout_fields’ );// Our hooked in function – $fields is passed via the filter!
function custom_override_checkout_fields( $fields ) {
$fields[‘company’][‘placeholder’] = ‘My new placeholder’;
return $fields;
}The page I need help with: [log in to see the link]
- The topic ‘Adjusting placeholder text for businessname on checkoutpage’ is closed to new replies.