Simply one for you!
I would like to change the checkout form title”Billing details” To something else.
I have tried adding this to my child theme functions.php. But its not changing:
//Change the Billing Details checkout label to Your Details
function wc_billing_field_strings( $translated_text, $text, $domain ) {
switch ( $translated_text ) {
case ‘Billing Details’ :
$translated_text = __( ‘Your Details’, ‘woocommerce’ );
break;
}
return $translated_text;
}
add_filter( ‘gettext’, ‘wc_billing_field_strings’, 20, 3 );
Sorry being an idiot!
I created a folder in my child theme called woo commerce and then a folder within called templates – to keep it free from updates wiping out my changes.
I then copied “form-billing.php” form woocommerece> templates>checkout into this folder and then just edited the file.
Bingo it all works fine. I was just thinking about the obvious when i started with the functions.php and not woocommerece it self.
Ticket closed