Checkout

WooCommerce Change “Billing & Shipping” Heading

Pre-Requisites

There are no pre-requisites in order for you to be able to implement this solution.

How To Implement This Solution?

Simply copy the pre-coded solution to your active theme’s functions.php or preferably the Code Snippets Plugin.

About This Solution

If you’re building an eCommerce site for a pickup only shop, you’ll notice that the checkout form by default will have the H3 heading “Billing & Shipping” which is slightly erroneous and should instead just read “Billing”. This guide shows you how you can change this default “Billing & Shipping” heading text and replace it with just “Billing”. In this specific example, “Billing & Shipping” is replaced with “Billing Details”.

/**
* Snippet Name: WooCommerce Change "Billing & Shipping" Heading On Checkout Page
* Snippet Author: ecommercehints.com
*/

add_filter( 'gettext', 'ecommercehints_change_billing_shipping_heading', 10, 3 );

function ecommercehints_change_billing_shipping_heading( $translated, $untranslated, $domain ) {
if ( !is_admin() && $domain === "woocommerce" ) {
if ( $translated == 'Billing & Shipping' ) { // The exact text to replace (the existing heading)
$translated = 'Billing Details'; // The new text
}
}
return $translated;
}

Snippet Benefits

  • Change the “Billing & Shipping” heading text on the WooCommerce checkout form to “Billing” for a more accurate checkout if shipping is not an option.

100 WooCommerce Conversion Rate Optimisation Tips

This field is for validation purposes and should be left unchanged.

Let’s collaborate!

Need to outsource WordPress development?

Join forces with UnlimitedWP for an outsourced white label web development service you can truly rely on.

First Timer Here?

Sign up to receive 20% off on your first month with us.

26027
WELCOME OFFER