STEPS TO CHANGE DEFAULT QUANTITY TEXT TO WEIGHT

add_filter('gettext', 'translate_reply');
add_filter('ngettext', 'translate_reply');

function translate_reply($translated) {
$translated = str_ireplace('Quantity', 'New Label', $translated);
return $translated;
}

STEPS TO CHANGE DEFAULT ADD TO CART TEXT

  1. Open WordPress admin panel, go to Appearance > Theme Editor 
  2. Open functions.php theme file
  3. Add the following code at the bottom of function.php file
  4. Save the changes and check your website. The custom text in add to cart button should show up now.
// To change add to cart text on single product page
add_filter( 'woocommerce_product_single_add_to_cart_text', 'woocommerce_custom_single_add_to_cart_text' ); 
function woocommerce_custom_single_add_to_cart_text() {
    return __( 'Buy Now', 'woocommerce' ); 
}
// To change add to cart text on product archives(Collection) page add_filter( 'woocommerce_product_add_to_cart_text', 'woocommerce_custom_product_add_to_cart_text' ); function woocommerce_custom_product_add_to_cart_text() { return __( 'Buy Now', 'woocommerce' ); }

How to change woocommerce checkout 'Ship to a Different Address' section title

function shipchange( $translated_text, $text, $domain ) {
switch ( $translated_text ) {
case 'Ship to a different address?' :
$translated_text = __( 'Partial Pay', 'woocommerce' );
break;
}
return $translated_text;
}

add_filter('gettext', 'shipchange', 20, 3);

How to edit frontend dashboard footer text.

1
2
3
4
add_filter( 'wpcfe_footer_credits', 'custom_footer_text' );
function custom_footer_text(){
    echo 'Your content here.';
}

WPFront User Role Editor

WPFront User Role Editor

FREE DOWNLOAD

Send download link to:

Welcome Back!

Login to your account below

Retrieve your password

Please enter your username or email address to reset your password.

Enable Notifications OK No thanks