How to change the Billing form title in the Woocommerce checkout page

  • July 2, 2021
  • 0
Hire Vivek Asodariya

The billing title is appearing on the checkout page. some users want to change the billing form title.

Here’s a neat trick if, for some reason, you want to change the checkout form header in WooCommerce. By default, the header is named “Billing Details” and you can change this to whatever you want in just a few steps.

If you want to change the billing form title then you need to add the below code.

Add below code in your (child) theme’s functions.php

function vivek_patel_billing_form_heading_strings( $translated_text, $text, $domain ) {
	switch ( $translated_text ) {
		case 'Billing details' :
		$translated_text = __( 'Contact Details', 'woocommerce' );
		break;
		}
	return $translated_text;
}
add_filter( 'gettext', 'vivek_patel_billing_form_heading_strings', 20, 3 );

Currently, I have set the title Contact Details instead of the Billing details.

Leave a Reply

Your email address will not be published. Required fields are marked *