Quantcast
Channel: Betheme Support Forum
Viewing all articles
Browse latest Browse all 92957

Edit Checkout Field Label

$
0
0

How can I change/edit the address field label on checkout form? (see attached)

I already tried adding code to function.php but it didn't work.

Here's the code:

add_filter( 'woocommerce_checkout_fields' , 'custom_override_checkout_fields' );

function custom_override_checkout_fields( $fields ) {

$fields['billing']['billing_city']['label'] = 'Barangay + City';

$fields['shipping']['shipping_city']['label'] = 'Barangay + City';

return $fields;

}


I already tried using plugin such as WooCommerce checkout fields but still didn't work.


Please help.


Thank you in advance.



Viewing all articles
Browse latest Browse all 92957

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>